Preparing search index...

    Renders a mesh with customizable blend shapes and normals.

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

    const obj = scene.createSceneObject('MeshObj');
    const rmv = obj.addComponent('RenderMeshVisual') as Editor.Components.RenderMeshVisual;

    rmv.blendNormals = true;
    rmv.blendShapesEnabled = false;
    console.log(`RenderMeshVisual: mesh=${Editor.isNull(rmv.mesh) ? 'none' : rmv.mesh.name}, blendNormals=${rmv.blendNormals}, blendShapes=${rmv.blendShapesEnabled}`);

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    blendNormals: boolean

    Enable blending of normals between blend shapes.

    blendShapesEnabled: boolean

    Enable blend shapes for this render mesh.

    enabled: boolean

    Whether the component is active.

    horizontalAlignment: Horizontal

    Horizontal alignment of the mesh visual.

    id: Uuid

    The unique id of the entity.

    mainMaterial: Material

    Primary material used for rendering.

    materials: Material[]

    Array of all materials on this mesh visual.

    The render mesh to display.

    meshShadowMode: MeshShadowMode

    Shadow rendering mode for the mesh.

    meta: Meta

    Metadata associated with this entity, providing access to its unique identifier and other descriptive properties.

    name: string

    Name of the component.

    renderOrder: number

    Determines the order in which this visual component is rendered relative to others.

    sceneObject: SceneObject

    Scene object this component is attached to.

    shadowColor: vec4

    Color of the mesh shadow.

    shadowDensity: number

    Opacity of the mesh shadow.

    stretchMode: StretchMode

    How the mesh stretches to fit its container.

    type: string

    The entity's type.

    verticalAlignment: Vertical

    Vertical alignment of the mesh visual.

    Methods

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

      Parameters

      • type: string

      Returns boolean

    • Move a material from one index to another.

      Parameters

      • origin: number
      • destination: number

      Returns void