GltfAccessor 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.
public ref class GltfAccessor : Microsoft::MixedReality::Toolkit::Utilities::Gltf::Schema::GltfChildOfRootProperty
public ref class GltfAccessor : Microsoft::MixedReality::Toolkit::Utilities::Gltf::Schema::GltfChildOfRootProperty, UnityEngine::ISerializationCallbackReceiver
[System.Serializable]
public class GltfAccessor : Microsoft.MixedReality.Toolkit.Utilities.Gltf.Schema.GltfChildOfRootProperty
[System.Serializable]
public class GltfAccessor : Microsoft.MixedReality.Toolkit.Utilities.Gltf.Schema.GltfChildOfRootProperty, UnityEngine.ISerializationCallbackReceiver
[<System.Serializable>]
type GltfAccessor = class
inherit GltfChildOfRootProperty
[<System.Serializable>]
type GltfAccessor = class
inherit GltfChildOfRootProperty
interface ISerializationCallbackReceiver
Public Class GltfAccessor
Inherits GltfChildOfRootProperty
Public Class GltfAccessor
Inherits GltfChildOfRootProperty
Implements ISerializationCallbackReceiver
- Inheritance
- Attributes
- Implements
-
UnityEngine.ISerializationCallbackReceiver
Constructors
| GltfAccessor() |
Fields
| bufferView |
The index of the bufferView. If this is undefined, look in the sparse object for the index and value buffer views. |
| byteOffset |
The offset relative to the start of the bufferView in bytes. This must be a multiple of the size of the component datatype. |
| componentType |
The datatype of components in the attribute.
All valid values correspond to WebGL enums.
The corresponding typed arrays are: |
| count |
The number of attributes referenced by this accessor, not to be confused with the number of bytes or number of components. 1 |
| 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) |
| max |
Maximum value of each component in this attribute. Both min and max arrays have the same length. The length is determined by the value of the type property; it can be 1, 2, 3, 4, 9, or 16. When
|
| min |
Minimum value of each component in this attribute. Both min and max arrays have the same length. The length is determined by the value of the type property; it can be 1, 2, 3, 4, 9, or 16. When
|
| name |
The user-defined name of this object. This is not necessarily unique, e.g., an accessor and a buffer could have the same name, or two accessors could even have the same name. (Inherited from GltfChildOfRootProperty) |
| normalized |
Specifies whether integer data values should be normalized
( |
| sparse |
Sparse storage of attributes that deviate from their initialization value. |
| type |
Specifies if the attribute is a scalar, vector, or matrix, and the number of elements in the vector or matrix. |
Properties
| BufferView |
https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/schema/bufferView.schema.json |
| ComponentType |
The datatype of components in the attribute.
All valid values correspond to WebGL enums.
The corresponding typed arrays are: |
Explicit Interface Implementations
| ISerializationCallbackReceiver.OnAfterDeserialize() | |
| ISerializationCallbackReceiver.OnBeforeSerialize() |
Extension Methods
| GetColorArray(GltfAccessor) |
Get Color array from accessor |
| GetIntArray(GltfAccessor, Boolean) |
Get Int array from accessor |
| GetVector2Array(GltfAccessor, Boolean) |
Get Vector2 array from accessor |
| GetVector3Array(GltfAccessor, Boolean) |
Get Vector3 array from accessor |
| GetVector4Array(GltfAccessor, Boolean) |
Get Vector4 array from accessor |