Class GltfGlobals
Generic glTF constants and utility methods.
Inherited Members
Namespace: GLTFast
Syntax
public static class GltfGlobals
Fields
GlbExt
glTF-Binary file extension
Declaration
public const string GlbExt = ".glb"
Field Value
Type | Description |
---|---|
String |
GltfBinaryMagic
First four bytes of a glTF-Binary file are made up of this signature Represents glTF in ASCII
Declaration
public const uint GltfBinaryMagic = 1179937895U
Field Value
Type | Description |
---|---|
UInt32 |
GltfExt
glTF file extension
Declaration
public const string GltfExt = ".gltf"
Field Value
Type | Description |
---|---|
String |
GltfPackageName
glTF package name
Declaration
public const string GltfPackageName = "com.unity.cloud.gltfast"
Field Value
Type | Description |
---|---|
String |
Methods
IsGltfBinary(Byte[])
Figures out if a byte array contains data of a glTF-Binary
Declaration
public static bool IsGltfBinary(byte[] data)
Parameters
Type | Name | Description |
---|---|---|
Byte[] | data | data buffer |
Returns
Type | Description |
---|---|
Boolean | True if the data is a glTF-Binary, false otherwise |