docs.unity3d.com
    Show / Hide Table of Contents

    Class GltfGlobals

    Generic glTF constants and utility methods.

    Inheritance
    Object
    GltfGlobals
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    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

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023