Editor Scripting API

    A native asset that provides information for visual objects rendering. Learn more at LensScripting.ObjectPrefab. Import with Editor.Model.AssetManager#createNativeAsset.

    Hierarchy (View Summary, Expand)

    Index

    Constructors

    Properties

    cacheFile: Path
    id: Uuid

    The unique id of the entity.

    lazyLoading: boolean
    name: string

    The name of the asset.

    prefabInstances: SceneObject[]
    retainAssets: boolean
    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

    • Beta

      Parameters

      • type: string

      Returns boolean

    • Beta

      Swap this entity for another one based on a JSON of the current entity id and the target entity id.

      Parameters

      • referenceMapping: object

      Returns void

    • Beta

      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

    MMNEPVFCICPMFPCPTTAAATR