Preparing search index...

    The same entity as in Lens Scripting.

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

    // Create a RenderMeshVisual and set shadow mode to Caster
    const obj = scene.createSceneObject('ShadowCaster');
    const rmv = obj.addComponent('RenderMeshVisual');
    rmv.meshShadowMode = Editor.Components.MeshShadowMode.Caster;
    console.log(`meshShadowMode: ${rmv.meshShadowMode}`);
    Index

    Enumeration Members

    Enumeration Members

    Caster: number

    Mesh casts shadows onto other objects.

    None: number

    Mesh neither casts nor receives shadows.

    Receiver: number

    Mesh receives shadows from other objects.