Interface IGltfAccessors
Provides read-only access to typed glTF accessor data.
Namespace: Unity.Cloud.Gltfast
Assembly: Unity.Cloud.Gltfast.dll
Syntax
[MovedFrom(true, "GLTFast", "glTFast", null)]
public interface IGltfAccessors
Remarks
The data is decoded into Unity's coordinate system and value range. For a glTF asset's data as stored, use IGltfBufferData instead.
Methods
GetAccessorData<T>(int)
Provides an accessors typed data.
Declaration
NativeArray<T>.ReadOnly GetAccessorData<T>(int accessorIndex) where T : unmanaged
Parameters
| Type | Name | Description |
|---|---|---|
| int | accessorIndex | glTF accessor index. |
Returns
| Type | Description |
|---|---|
| NativeArray<T>.ReadOnly | The requested data or a non-initialized readonly native array if the request couldn't be handled. |
Type Parameters
| Name | Description |
|---|---|
| T | Accessor member type. |