Preparing search index...

    3D texture file information including depth.

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

    // FileTextureInfo3D extends FileTextureInfo with a depth property.
    // Access it from FileTexture3D or FileTexture2DArray assets.
    const textures3D = model.project.assetManager.assets.filter(
    a => a.isOfType('FileTexture3D')
    ) as Editor.Assets.FileTexture3D[];

    for (const tex of textures3D) {
    if (Editor.isNull(tex)) continue;
    const info = tex.fileInfo;
    // FileTextureInfo3D provides width, height, and depth
    console.log(`${tex.name}: ${info.width} x ${info.height} x ${info.depth}`);
    }

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    depth: number

    Depth dimension of the 3D texture in pixels.

    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