Editor Scripting API
    Preparing search index...

    Base class for entities which has object and component relationship such as Editor.Assets.Scene and Editor.Assets.ObjectPrefab.

    Hierarchy (View Summary)

    Index

    Properties

    cacheFile: Path
    id: Uuid

    The unique id of the entity.

    meta: Meta
    name: string

    The name of the asset.

    rootSceneObjects: SceneObject[]

    A list of scene objects which is a direct child of this entity.

    sceneObjects: SceneObject[]

    A list of scene objects which is a child of this entity.

    type: string

    The entity's type.

    Methods

    • Creates a scene object to the entity.

      Parameters

      • name: string

      Returns SceneObject

    • Find components on the entity.

      Parameters

      • entityType: string

      Returns Component[]

    • Get the index of object within the list of all the root objects.

      Parameters

      Returns number

    • Parameters

      • type: string

      Returns boolean

    • Reparent the scene object to another scene object. You can use this to reparent objects to the root (i.e. pass in null).

      Parameters

      Returns void