ProtectedconstructorSnap HiddenReadonlycachePath to the cached asset file.
ReadonlyfileImport metadata for the asset.
ReadonlyidThe unique id of the entity.
Whether prefab assets load lazily on first use.
ReadonlymetaMetadata associated with this entity, providing access to its unique identifier and other descriptive properties.
ReadonlynameThe name of the asset.
ReadonlyprefabList of scene objects instantiated from this prefab.
Whether referenced assets are preserved when the prefab is modified.
ReadonlyrootA list of scene objects which is a direct child of this entity.
ReadonlysceneA list of scene objects which is a child of this entity.
ReadonlytypeThe entity's type.
A list of entities which this entity has a reference to.
StaticgetA list of entities which has a reference to this entity.
Get the index of object within the list of all the root objects.
StaticgetReturns the name of this object's type.
Returns true if the object is of the specified type.
Returns true if this object refers to the same instance as the given object.
Reparent the scene object to another scene object. You can use this to reparent objects to the root (i.e. pass in null).
Optionalposition: number
Reusable object template that can be instantiated in scenes.