GltfMeshPrimitive Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Geometry to be rendered with the given material. https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/schema/mesh.primitive.schema.json
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
- 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 |
| 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() |