reckfellENGINE

MultiMeshInstance2D

Entity that instances a MultiMesh in 2D.

On this page
class MultiMeshInstance2DReckfellSharpInherits Entity2D

Entity that instances a MultiMesh in 2D.

MultiMeshInstance2D is a specialized node to instance a MultiMesh resource in 2D. This can be faster to render compared to displaying many Sprite2D nodes with large transparent areas, especially if the nodes take up a lot of space on screen at high viewport resolutions. This is because using a mesh designed to fit the sprites' opaque areas will reduce GPU fill rate utilization (at the cost of increased vertex processing utilization). Usage is the same as MultiMeshInstance3D.

Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.

Constructors1

MultiMeshInstance2DConstructor
# MultiMeshInstance2D
C#
public MultiMeshInstance2D();

Properties2

MultimeshProperty
# Multimesh
C#
public MultiMesh Multimesh { get; set; }

The MultiMesh that will be drawn by the MultiMeshInstance2D.

TextureProperty
# Texture
C#
public Texture2D Texture { get; set; }

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

Methods4

GetMultimeshMultiMesh
# GetMultimesh
C#
public MultiMesh GetMultimesh();
Returns MultiMesh
GetTextureTexture2D
# GetTexture
C#
public Texture2D GetTexture();
Returns Texture2D
SetMultimeshvoid
# SetMultimesh
C#
public void SetMultimesh(MultiMesh multimesh);
Parameters
NameTypeDefault
multimeshMultiMesh—
SetTexturevoid
# SetTexture
C#
public void SetTexture(Texture2D texture);
Parameters
NameTypeDefault
textureTexture2D—

Signals and events1

TextureChangedEvent
# TextureChanged
C#
public event Action TextureChanged;

Emitted when the MultiMeshInstance2D.Texture is changed.

Reckfell Engine documentationBack to top ↑
QUICK LINKSGetting startedEntity hierarchyC# & .NET 10Scenes and prefabs
Reckfell guides and full API K
reckfellENGINE
RECKFELL ACCOUNT

Sign in

Sign in to your Reckfell account.

One account for the entire Reckfell platform.