Preparing search index...

    Asset representing a named location with an identifier and type.

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

    // Find LocationAsset assets and check their type
    const locationAssets = model.project.assetManager.assets.filter(
    a => a.isOfType('LocationAsset')
    ) as Editor.Assets.LocationAsset[];

    for (const loc of locationAssets) {
    if (Editor.isNull(loc)) continue;
    console.log(`Location: ${loc.displayName}, id: ${loc.locationId}`);
    // Check if this is a Snap-type location
    if (loc.locationType === Editor.Assets.LocationType.Snap) {
    console.log(' This is a Snap cloud location');
    }
    }

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    cacheFile: Path

    Path to the cached asset file.

    displayName: string

    Human-readable name for the location.

    Import metadata for the asset.

    id: Uuid

    The unique id of the entity.

    locationId: string

    Unique identifier for the location.

    locationType: LocationType

    Type classification of the location.

    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

    • Returns true if this object refers to the same instance as the given object.

      Parameters

      Returns boolean