Method GetComponentType
GetComponentType(VertexAttributeFormat)
Converts Unity vertex attribute format to glTF component type.
Declaration
public static GltfComponentType GetComponentType(VertexAttributeFormat format)
Parameters
Type | Name | Description |
---|---|---|
VertexAttributeFormat | format | vertex attribute format |
Returns
Type | Description |
---|---|
GltfComponentType | glTF component type |
Exceptions
Type | Condition |
---|---|
ArgumentOutOfRangeException | Thrown when the value of format is unknown. |