GltfMeshPrimitive Class

Definition

public ref class GltfMeshPrimitive : Microsoft::MixedReality::Toolkit::Utilities::Gltf::Schema::GltfProperty
public ref class GltfMeshPrimitive : Microsoft::MixedReality::Toolkit::Utilities::Gltf::Schema::GltfProperty, UnityEngine::ISerializationCallbackReceiver
[System.Serializable]
public class GltfMeshPrimitive : Microsoft.MixedReality.Toolkit.Utilities.Gltf.Schema.GltfProperty
[System.Serializable]
public class GltfMeshPrimitive : Microsoft.MixedReality.Toolkit.Utilities.Gltf.Schema.GltfProperty, UnityEngine.ISerializationCallbackReceiver
[<System.Serializable>]
type GltfMeshPrimitive = class
    inherit GltfProperty
[<System.Serializable>]
type GltfMeshPrimitive = class
    inherit GltfProperty
    interface ISerializationCallbackReceiver
Public Class GltfMeshPrimitive
Inherits GltfProperty
Public Class GltfMeshPrimitive
Inherits GltfProperty
Implements ISerializationCallbackReceiver
Inheritance
GltfMeshPrimitive
Attributes
Implements
UnityEngine.ISerializationCallbackReceiver

Constructors

GltfMeshPrimitive()

Fields

Extensions

https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/schema/extension.schema.json

(Inherited from GltfProperty)
Extras

https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/schema/extras.schema.json

(Inherited from GltfProperty)
indices

The index of the accessor that contains mesh indices. When this is not defined, the primitives should be rendered without indices using drawArrays(). When defined, the accessor must contain indices: the bufferView referenced by the accessor must have a target equal to 34963 (ELEMENT_ARRAY_BUFFER); a byteStride that is tightly packed, i.e., 0 or the byte size of componentType in bytes; componentType must be 5121 (UNSIGNED_BYTE), 5123 (UNSIGNED_SHORT) or 5125 (UNSIGNED_INT), the latter is only allowed when OES_element_index_uint extension is used; type must be \"SCALAR\".

material

The index of the material to apply to this primitive when rendering.

mode

The type of primitives to render. All valid values correspond to WebGL enums.

Properties

Attributes

A dictionary object, where each key corresponds to mesh attribute semantic and each value is the index of the accessor containing attribute's data.

Mode

The type of primitives to render. All valid values correspond to WebGL enums.

SubMesh

Unity Mesh wrapper for the GltfMeshPrimitive SubMesh

Targets

An array of Morph Targets, each Morph Target is a dictionary mapping attributes (only "POSITION" and "NORMAL" supported) to their deviations in the Morph Target (index of the accessor containing the attribute displacements' data).

Explicit Interface Implementations

ISerializationCallbackReceiver.OnAfterDeserialize()
ISerializationCallbackReceiver.OnBeforeSerialize()

Applies to