Node that instances a MultiMesh in 2D.
    public class MultiMeshInstance2D : Node2D

MultiMeshInstance2D is a specialized node to instance a MultiMesh resource in 2D.

Usage is the same as MultiMeshInstance.

Inheritance Chain

Constructors

    public MultiMeshInstance2D()

Signals

    "texture_changed" ()

Properties

    public MultiMesh Multimesh { get; set; }

The MultiMesh that will be drawn by the MultiMeshInstance2D.

    public Texture NormalMap { get; set; }

The normal map that will be used if using the default CanvasItemMaterial.

    public Texture Texture { get; set; }

The Texture that will be used if using the default CanvasItemMaterial. Can be accessed as TEXTURE in CanvasItem shader.

Methods

    [Obsolete("GetMultimesh is deprecated. Use the Multimesh property instead.")]
    public MultiMesh GetMultimesh()

Getter for Multimesh

    [Obsolete("GetNormalMap is deprecated. Use the NormalMap property instead.")]
    public Texture GetNormalMap()

Getter for NormalMap

    [Obsolete("GetTexture is deprecated. Use the Texture property instead.")]
    public Texture GetTexture()

Getter for Texture

    [Obsolete("SetMultimesh is deprecated. Use the Multimesh property instead.")]
    public void SetMultimesh(MultiMesh multimesh)

Setter for Multimesh

    [Obsolete("SetNormalMap is deprecated. Use the NormalMap property instead.")]
    public void SetNormalMap(Texture normalMap)

Setter for NormalMap

    [Obsolete("SetTexture is deprecated. Use the Texture property instead.")]
    public void SetTexture(Texture texture)

Setter for Texture

Tags: