Beta
Protected
constructorBeta
Beta
childrenA list of scene objects that is a child of this scene object.
Beta
componentsA list of components that is a child of this scene object.
Beta
enabledWhether this scene object is enabled or disabled.
Readonly
Beta
hasWhether this scene object contains any component which is of type Editor.Components.Visual
.
Readonly
Beta
idThe unique id of the entity.
Beta
layerThe layer that this scene object is on.
Beta
layersThe layerSet this scene object is on.
Beta
localThe transform of this scene object relative to its parent.
Beta
nameThe name of the scene object.
Readonly
Beta
topReadonly
Beta
typeThe entity's type.
Beta
worldThe transform of this scene object relative to the scene its in.
Beta
Add a scene object as a child of this object at a specified pos
.
Optional
pos: numberBeta
Add a new Editor.Components.Component by entityType to this object..
Beta
Add the component value
at the specified pos
.
Optional
pos: numberBeta
Remove all children from this object.
Beta
Remove all components from this scene object.
Static
commonBeta
Beta
Destroy this scene object. All references to it becomes invalid.
Beta
Get the number of children on this object.
Beta
Get the first component of entityType
.
Beta
Get all the components of entityType
on this object.
Beta
Get the number of components on this object.
Beta
Beta
Get the position of a specific object, if the object is a child of this object.
Beta
Get the position of a specific component value
on this object.
Beta
Beta
Move child
in the order of children on this object.
Beta
Move the component value
to a specified pos
.
Beta
Swap this entity for another one based on a JSON of the current entity id and the target entity id.
Beta
Remove a child at the specified pos
.
Beta
Remove the first component of entityType
from this object.
Beta
Remove the components at the specified pos
.
Beta
Set the child scene object value
to be at the specified pos
.
Beta
Set the component value
to be at the specified pos
.
Beta
Set the parent of this scene object.
Optional
position: numberStatic
top
The same entity as in Lens Scripting. Can contain one or more Editor.Components.Component. Additionally, it can have zero or more scene objects which is a child of it.
See
LensScripting.SceneObject.