Class PrefabView2D

Class Hierarchy

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 an instance of PrefabView2D

PrefabView2D:create(objectName)

Creates an instance of PrefabView2D.

Parameters
objectName (string)

The name of the object.