Beta
Readonly
Beta
cacheReadonly
Beta
fileReadonly
Beta
idThe unique id of the entity.
Readonly
Beta
layersThis list of layers that exists within this scene.
Readonly
Beta
mainThe camera that renders renderOutput
.
Readonly
Beta
nameThe name of the asset.
Beta
renderThe Editor.Assets.RenderTarget which this scene will be rendered to. See LensScripting.ScriptScene.
Beta
renderThe overlay Editor.Assets.RenderTarget which this scene will be rendered to. This will shown at full resolution to the device which opens the Lens.
Beta
renderThe preview Editor.Assets.RenderTarget which this scene will be rendered to. See LensScripting.ScriptScene.
Readonly
Beta
rootA list of scene objects which is a direct child of this entity.
Readonly
Beta
sceneA list of scene objects which is a child of this entity.
Readonly
Beta
typeThe entity's type.
Beta
Get the index of object
within the list of all the root objects.
Beta
Beta
Instantiate a prefab as a child of parent
under this entity.
Beta
Beta
Swap this entity for another one based on a JSON of the current entity id and the target entity id.
Beta
Reparent the scene object to another scene object. You can use this to reparent objects to the root (i.e. pass in null
).
Optional
position: number
The entity which will be coverted into the Lens scene during project export. This scene will contan and own all objects and components in the Lens. This entity can be accessed via the current project’s
model.project.scene
.