Preparing search index...

    Material asset defining rendering passes and their properties.

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

    // Find a Material and configure its rendering properties
    const materials = assetManager.assets.filter(a => a.isOfType('Material')) as Editor.Assets.Material[];
    if (materials.length === 0) return;

    const mat = materials[0];

    if (mat.passInfos.length > 0) {
    const pass = mat.passInfos[0];

    // Configure blending for transparency
    pass.blendMode = Editor.Assets.BlendMode.Normal;
    pass.depthWrite = false;

    // Enable two-sided rendering
    pass.twoSided = true;

    // List pass property names (shader uniforms)
    const props = pass.getPropertyNames();
    console.log(`Material "${mat.name}" pass 0 configured (blend=Normal, twoSided=true); properties: ${props.join(', ')}`);
    }

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    cacheFile: Path

    Path to the cached asset file.

    Import metadata for the asset.

    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.

    name: string

    The name of the asset.

    passInfos: PassInfo[]

    Array of pass information objects for each rendering pass.

    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