Preparing search index...

    A native asset that provides data for LensScripting.LocationAsset. Import with Editor.Model.AssetManager#createNativeAsset.

        const model = this.pluginSystem.findInterface(Editor.Model.IModel) as Editor.Model.IModel;

    // Find LocationMesh assets and inspect their associated location
    const meshes = model.project.assetManager.assets.filter(
    a => a.isOfType('LocationMesh')
    ) as Editor.Assets.LocationMesh[];

    for (const mesh of meshes) {
    if (Editor.isNull(mesh)) continue;
    console.log(`LocationMesh: ${mesh.name}`);
    const loc = mesh.location;
    if (!Editor.isNull(loc)) {
    console.log(` Location: ${loc.displayName}, type: ${loc.locationType}`);
    }
    }

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    cacheFile: Path

    Path to the cached asset file.

    Import metadata for the asset.

    id: Uuid

    The unique id of the entity.

    location: LocationAsset

    The LocationAsset associated with this mesh.

    meta: Meta

    Metadata associated with this entity, providing access to its unique identifier and other descriptive properties.

    name: string

    The name of the asset.

    type: string

    The entity's type.

    Methods

    • Returns the name of this object's type.

      Returns string

    • Returns true if the object is of the specified type.

      Parameters

      • type: string

      Returns boolean