reckfellENGINE

GltfMesh

GLTFMesh represents a glTF mesh.

On this page
class GltfMeshReckfellSharpInherits Resource

GLTFMesh represents a glTF mesh.

GLTFMesh handles 3D mesh data imported from glTF files. It includes properties for blend channels, blend weights, instance materials, and the mesh itself.

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

Constructors1

GltfMeshConstructor
# GltfMesh
C#
public GltfMesh();

Properties4

BlendWeightsProperty
# BlendWeights
C#
public float[] BlendWeights { get; set; }

An array of floats representing the blend weights of the mesh.

InstanceMaterialsProperty
# InstanceMaterials
C#
public Reckfell.Collections.Array<Material> InstanceMaterials { get; set; }

An array of Material objects representing the materials used in the mesh.

MeshProperty
# Mesh
C#
public ImporterMesh Mesh { get; set; }

The ImporterMesh object representing the mesh itself.

OriginalNameProperty
# OriginalName
C#
public string OriginalName { get; set; }

The original name of the mesh.

Methods11

GetAdditionalDataVariant
# GetAdditionalData
C#
public Variant GetAdditionalData(StringName extensionName);

Gets additional arbitrary data in this GltfMesh instance. This can be used to keep per-node state data in GltfDocumentExtension classes, which is important because they are stateless. The argument should be the GltfDocumentExtension name (does not have to match the extension name in the glTF file), and the return value can be anything you set. If nothing was set, the return value is null.

Parameters
NameTypeDefault
extensionNameStringName—
Returns Variant
GetBlendWeightsfloat[]
# GetBlendWeights
C#
public float[] GetBlendWeights();
Returns float[]
GetInstanceMaterialsReckfell.Collections.Array<Material>
# GetInstanceMaterials
C#
public Reckfell.Collections.Array<Material> GetInstanceMaterials();
Returns Reckfell.Collections.Array<Material>
GetMeshImporterMesh
# GetMesh
C#
public ImporterMesh GetMesh();
Returns ImporterMesh
GetOriginalNamestring
# GetOriginalName
C#
public string GetOriginalName();
Returns string
SetAdditionalDatavoid
# SetAdditionalData
C#
public void SetAdditionalData(StringName extensionName, Variant additionalData);

Sets additional arbitrary data in this GltfMesh instance. This can be used to keep per-node state data in GltfDocumentExtension classes, which is important because they are stateless. The first argument should be the GltfDocumentExtension name (does not have to match the extension name in the glTF file), and the second argument can be anything you want.

Parameters
NameTypeDefault
extensionNameStringName—
additionalDataVariant—
SetBlendWeights2 overloads
# SetBlendWeights · 1/2
C#
public void SetBlendWeights(ReadOnlySpan<float> blendWeights);
Parameters
NameTypeDefault
blendWeightsReadOnlySpan<float>—
# SetBlendWeights · 2/2
C#
public void SetBlendWeights(float[] blendWeights);
Parameters
NameTypeDefault
blendWeightsfloat[]—
SetInstanceMaterialsvoid
# SetInstanceMaterials
C#
public void SetInstanceMaterials(Reckfell.Collections.Array<Material> instanceMaterials);
Parameters
NameTypeDefault
instanceMaterialsReckfell.Collections.Array<Material>—
SetMeshvoid
# SetMesh
C#
public void SetMesh(ImporterMesh mesh);
Parameters
NameTypeDefault
meshImporterMesh—
SetOriginalNamevoid
# SetOriginalName
C#
public void SetOriginalName(string originalName);
Parameters
NameTypeDefault
originalNamestring—
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.