docs.unity3d.com
Search Results for

    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
    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

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)