{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Class RootBase | Unity glTFast | 6.0.1
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class RootBase

    The root object for a glTF asset.

    Inheritance
    object
    RootBase
    RootBase<TAccessor, TAnimation, TAsset, TBuffer, TBufferView, TCamera, TExtensions, TImage, TMaterial, TMesh, TNode, TSampler, TScene, TSkin, TTexture>
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: GLTFast.Schema
    Assembly: solution.dll
    Syntax
    [Serializable]
    public abstract class RootBase

    Fields

    Name Description
    extensionsRequired

    Names of glTF extensions required to properly load this asset.

    extensionsUsed

    Names of glTF extensions used somewhere in this asset.

    scene

    The index of the default scene.

    Properties

    Name Description
    Accessors

    An array of accessors. An accessor is a typed view into a bufferView.

    Animations

    An array of keyframe animations.

    Asset

    Metadata about the glTF asset.

    BufferViews

    An array of bufferViews. A bufferView is a view into a buffer generally representing a subset of the buffer.

    Buffers

    An array of buffers. A buffer points to binary geometry, animation, or skins.

    Cameras

    An array of cameras. A camera defines a projection matrix.

    Extensions

    glTF root extensions

    HasAnimation
    Images

    An array of images. An image defines data used to create a texture.

    Materials

    An array of materials. A material defines the appearance of a primitive.

    Meshes

    An array of meshes. A mesh is a set of primitives to be rendered.

    Nodes

    An array of nodes.

    Samplers

    An array of samplers. A sampler contains properties for texture filtering and wrapping modes.

    Scenes

    An array of scenes.

    Skins

    An array of skins. A skin is defined by joints and matrices.

    Textures

    An array of textures.

    Methods

    Name Description
    GltfSerialize(StreamWriter)

    Serialization to JSON

    IsAccessorInterleaved(int)

    Looks up if a certain accessor points to interleaved data.

    JsonUtilityCleanup()

    Cleans up invalid parsing artifacts created by GltfJsonUtilityParser. If you inherit a custom Root class (for use with GltfImport.LoadWithCustomSchema<T>(string,ImportSettings,System.Threading.CancellationToken) ) you can override this method to perform sanity checks on the deserialized, custom properties.

    See Also

    https://www.khronos.org/registry/glTF/specs/2.0/glTF-2.0.html#reference-gltf
    In This Article
    Back to top
    Copyright © 2023 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)