Class PrefabView2D

Class Hierarchy

Prefab view 2D node. Use Prefab view 2D to switch 2D nodes at runtime.

Use a Prefab View 2D node to instantiate a 2D prefab. Prefab View node adds a prefab as its child node. This allows you to change the instantiated prefab and keep your application responsive when it is loading prefab resources.

Inherits properties and message types from PrefabView2DMetadata.

Synopsis

Methods
create()

Creates a prefab view 2D node

PrefabView2D.PrefabView2D:create(name)

Creates a prefab view 2D node.

Parameters
name (string)

The name of the node.