Preparing search index...

    Holds texture file dimensions.

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

    // FileTextureInfo holds width and height metadata for a FileTexture
    const textures = model.project.assetManager.assets.filter(
    a => a.isOfType('FileTexture')
    ) as Editor.Assets.FileTexture[];

    for (const ft of textures) {
    if (Editor.isNull(ft)) continue;
    const info = ft.fileInfo;
    console.log(`${ft.name}: width=${info.width}, height=${info.height}`);
    }

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    height: number

    Texture height in pixels.

    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.

    width: number

    Texture width in pixels.

    Methods

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

      Parameters

      • type: string

      Returns boolean