Class Mesh
A set of primitives to be rendered. Its global transform is defined by a node that references it.
Implements
Inherited Members
Namespace: Unity.Cloud.Gltfast.Objects
Assembly: Unity.Cloud.Gltfast.dll
Syntax
[MovedFrom(true, "GLTFast.Schema", "glTFast", null)]
public class Mesh : NamedObject, ICloneable
Properties
AdditionalProperties
Additional properties on glTF JSON objects. Those properties may have been added by a new, unsupported version of the glTF specification. For extending glTF, please use extensions or extras instead.
Declaration
[JsonIgnore]
public ReadOnlyProperties AdditionalProperties { get; }
Property Value
| Type | Description |
|---|---|
| ReadOnlyProperties |
Extensions
JSON object with extension-specific objects.
Declaration
[JsonPropertyName("extensions")]
public MeshExtensions Extensions { get; set; }
Property Value
| Type | Description |
|---|---|
| MeshExtensions |
See Also
Extras
Application-specific data for meshes
Declaration
[JsonPropertyName("extras")]
[JsonConverter(typeof(MeshExtrasConverter))]
public MeshExtras Extras { get; set; }
Property Value
| Type | Description |
|---|---|
| MeshExtras |
Primitives
An array of primitives, each defining geometry to be rendered with a material.
Declaration
[JsonPropertyName("primitives")]
public List<MeshPrimitive> Primitives { get; set; }
Property Value
| Type | Description |
|---|---|
| List<MeshPrimitive> |
Weights
Array of weights to be applied to the Morph Targets.
Declaration
[JsonPropertyName("weights")]
[JsonConverter(typeof(FloatListConverter))]
public List<float> Weights { get; set; }
Property Value
| Type | Description |
|---|---|
| List<float> |
Methods
Clone()
Clones the Mesh object
Declaration
public object Clone()
Returns
| Type | Description |
|---|---|
| object | Member-wise clone |