Method GetAccessorAttributeType
GetAccessorAttributeType(int)
Get one-dimensional glTF attribute type by number of components per elements. Note that this does not support matrix types.
Declaration
public static GltfAccessorAttributeType GetAccessorAttributeType(int dimension)
Parameters
| Type | Name | Description |
|---|---|---|
| int | dimension | Number of components per element |
Returns
| Type | Description |
|---|---|
| GltfAccessorAttributeType | Corresponding one-dimensional glTF attribute type |
Exceptions
| Type | Condition |
|---|---|
| ArgumentOutOfRangeException | Thrown when dimension is not between 1 and 4. |