Class GltfGlobals
Generic glTF constants and utility methods.
Inherited Members
Namespace: GLTFast
Assembly: solution.dll
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 = 1179937895
Field Value
Type | Description |
---|---|
uint |
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 |
---|---|
bool | True if the data is a glTF-Binary, false otherwise |