Editor Scripting API
    Preparing search index...

    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.

    Hierarchy (View Summary)

    Index

    Properties

    children: SceneObject[]

    A list of scene objects that is a child of this scene object.

    components: Component[]

    A list of components that is a child of this scene object.

    enabled: boolean

    Whether this scene object is enabled or disabled.

    hasVisuals: boolean

    Whether this scene object contains any component which is of type Editor.Components.Visual.

    id: Uuid

    The unique id of the entity.

    layers: LayerSet

    The layerSet this scene object is on.

    localTransform: TransformEntity

    The transform of this scene object relative to its parent.

    meta: Meta
    name: string

    The name of the scene object.

    topOwner: ObjectOwner
    type: string

    The entity's type.

    worldTransform: WorldTransformAccessor

    The transform of this scene object relative to the scene its in.

    Methods

    • Add a scene object as a child of this object at a specified pos.

      Parameters

      Returns void

    • Add the component value at the specified pos.

      Parameters

      Returns void

    • Remove all children from this object.

      Returns void

    • Remove all components from this scene object.

      Returns void

    • Destroy this scene object. All references to it becomes invalid.

      Returns void

    • Get a specific object at the specified pos.

      Parameters

      • pos: number

      Returns SceneObject

    • Get the number of children on this object.

      Returns number

    • Get the component at the specified pos.

      Parameters

      • pos: number

      Returns Component

    • Get the number of components on this object.

      Returns number

    • Get the position of a specific object, if the object is a child of this object.

      Parameters

      Returns number

    • Get the position of a specific component value on this object.

      Parameters

      Returns number

    • Parameters

      • type: string

      Returns boolean

    • Move child in the order of children on this object.

      Parameters

      Returns void

    • Move the component value to a specified pos.

      Parameters

      • origin: number
      • destination: number

      Returns void

    • Remove a child from this from this scene object.

      Parameters

      Returns void

    • Remove a child at the specified pos.

      Parameters

      • pos: number

      Returns void

    • Remove the first component of entityType from this object.

      Parameters

      • entityType: string

      Returns boolean

    • Remove the components at the specified pos.

      Parameters

      • pos: number

      Returns void

    • Set the child scene object value to be at the specified pos.

      Parameters

      Returns void

    • Set the component value to be at the specified pos.

      Parameters

      Returns void

    • Set the parent of this scene object.

      Parameters

      Returns void