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 "Lens Scripting".Built-In.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 "Lens Scripting".Built-In.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
Adds a scene object to the entity.
Beta
Creates a scene object to the entity.
Beta
Get the index of object
within the list of all the root objects.
Beta
Instantiate a prefab as a child of parent
under this entity.
Beta
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
.