Editor.Components.MeshShadowMode
EnumThe same entity as in Lens Scripting.
Index
Example
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}`);
Enumeration Members
Caster
Caster:
number
Mesh casts shadows onto other objects.
None
None:
number
Mesh neither casts nor receives shadows.
Receiver
Receiver:
number
Mesh receives shadows from other objects.
See also
LensScripting.BaseMeshVisual.