Preparing search index...

    An object in the scene, or asset in the Editor.Model.AssetManager

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

    if (assets.length === 0) {
    console.log('No assets in project.');
    return;
    }

    const entity: Editor.Model.Entity = assets[0] as unknown as Editor.Model.Entity;
    console.log(`Entity id: ${entity.id}`);
    console.log(`Entity type: ${entity.type}`);

    const referenced = entity.getDirectlyReferencedEntities();
    console.log(`Directly referenced entities: ${referenced.length}`);

    const owned = entity.getOwnedEntities();
    console.log(`Owned entities: ${owned.length}`);

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    id: Uuid

    The unique id of the entity.

    meta: Meta

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

    type: string

    The entity's type.

    Methods

    • A list of entities which this entity has a reference to.

      Returns Entity[]

    • A list of entities which has a reference to this entity.

      Returns Entity[]

    • Returns string

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

      Parameters

      • type: string

      Returns boolean