Preparing search index...

    Shader pass UI configuration data.

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

    // Find Material assets and inspect PassUiData for each pass
    const materials = assetManager.assets.filter(
    a => a.isOfType('Material')
    ) as Editor.Assets.Material[];

    let totalBindings = 0;
    for (const material of materials) {
    for (const info of material.passInfos) {
    // Each pass exposes uiData with shaderType, extraDefines, and passBindings
    const uiData: Editor.Assets.PassUiData = info.uiData;
    if (!uiData) continue;
    totalBindings += uiData.passBindings.length;
    }
    }

    console.log(`Inspected ${materials.length} material(s), ${totalBindings} total pass binding(s)`);

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    extraDefines: string[]

    Additional preprocessor defines for the shader pass.

    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.

    passBindings: PassBinding[]

    Bindings between shader parameters and material inputs.

    shaderType: ShaderType

    Type of shader for this pass.

    type: string

    The entity's type.

    Methods

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

      Parameters

      • type: string

      Returns boolean