docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class RootBase<TAccessor, TAnimation, TAsset, TBuffer, TBufferView, TCamera, TExtensions, TImage, TMaterial, TMesh, TNode, TSampler, TScene, TSkin, TTexture>

    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>
    Root
    Root
    Inherited Members
    RootBase.extensionsUsed
    RootBase.extensionsRequired
    RootBase.scene
    RootBase.HasAnimation
    RootBase.IsAccessorInterleaved(int)
    RootBase.GltfSerialize(StreamWriter)
    RootBase.JsonUtilityCleanup()
    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<TAccessor, TAnimation, TAsset, TBuffer, TBufferView, TCamera, TExtensions, TImage, TMaterial, TMesh, TNode, TSampler, TScene, TSkin, TTexture> : RootBase where TAccessor : AccessorBase where TAnimation : AnimationBase where TAsset : Asset where TBuffer : Buffer where TBufferView : BufferViewBase where TCamera : CameraBase where TExtensions : RootExtensions where TImage : Image where TMaterial : MaterialBase where TMesh : MeshBase where TNode : NodeBase where TSampler : Sampler where TScene : Scene where TSkin : Skin where TTexture : TextureBase
    Type Parameters
    Name Description
    TAccessor

    Accessor type

    TAnimation

    Animation type

    TAsset

    Asset type

    TBuffer

    Buffer type

    TBufferView

    BufferView type

    TCamera

    Camera type

    TExtensions

    Extensions type

    TImage

    Image type

    TMaterial

    Material type

    TMesh

    Mesh type

    TNode

    Node type

    TSampler

    Sampler type

    TScene

    Scene type

    TSkin

    Skin type

    TTexture

    Texture type

    Fields

    accessors

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

    Declaration
    public TAccessor[] accessors
    Field Value
    Type Description
    TAccessor[]
    See Also
    https://www.khronos.org/registry/glTF/specs/2.0/glTF-2.0.html#reference-gltf

    animations

    An array of keyframe animations.

    Declaration
    public TAnimation[] animations
    Field Value
    Type Description
    TAnimation[]
    See Also
    https://www.khronos.org/registry/glTF/specs/2.0/glTF-2.0.html#reference-gltf

    asset

    Metadata about the glTF asset.

    Declaration
    public TAsset asset
    Field Value
    Type Description
    TAsset
    See Also
    https://www.khronos.org/registry/glTF/specs/2.0/glTF-2.0.html#reference-gltf

    bufferViews

    A view into a buffer generally representing a subset of the buffer.

    Declaration
    public TBufferView[] bufferViews
    Field Value
    Type Description
    TBufferView[]
    See Also
    https://www.khronos.org/registry/glTF/specs/2.0/glTF-2.0.html#reference-gltf

    buffers

    A buffer points to binary geometry, animation, or skins.

    Declaration
    public TBuffer[] buffers
    Field Value
    Type Description
    TBuffer[]
    See Also
    https://www.khronos.org/registry/glTF/specs/2.0/glTF-2.0.html#reference-gltf

    cameras

    A camera’s projection

    Declaration
    public TCamera[] cameras
    Field Value
    Type Description
    TCamera[]
    See Also
    https://www.khronos.org/registry/glTF/specs/2.0/glTF-2.0.html#reference-gltf

    extensions

    glTF root extensions

    Declaration
    public TExtensions extensions
    Field Value
    Type Description
    TExtensions
    See Also
    https://www.khronos.org/registry/glTF/specs/2.0/glTF-2.0.html#reference-gltf

    images

    Image data used to create a texture.

    Declaration
    public TImage[] images
    Field Value
    Type Description
    TImage[]
    See Also
    https://www.khronos.org/registry/glTF/specs/2.0/glTF-2.0.html#reference-gltf

    materials

    The material appearance of a primitive.

    Declaration
    public TMaterial[] materials
    Field Value
    Type Description
    TMaterial[]
    See Also
    https://www.khronos.org/registry/glTF/specs/2.0/glTF-2.0.html#reference-gltf

    meshes

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

    Declaration
    public TMesh[] meshes
    Field Value
    Type Description
    TMesh[]
    See Also
    https://www.khronos.org/registry/glTF/specs/2.0/glTF-2.0.html#reference-gltf

    nodes

    An object defining the hierarchy relations and the local transform of its content.

    Declaration
    public TNode[] nodes
    Field Value
    Type Description
    TNode[]
    See Also
    https://www.khronos.org/registry/glTF/specs/2.0/glTF-2.0.html#reference-gltf

    samplers

    Texture sampler properties for filtering and wrapping modes.

    Declaration
    public TSampler[] samplers
    Field Value
    Type Description
    TSampler[]
    See Also
    https://www.khronos.org/registry/glTF/specs/2.0/glTF-2.0.html#reference-gltf

    scenes

    Scene, the top level hierarchy object.

    Declaration
    public TScene[] scenes
    Field Value
    Type Description
    TScene[]
    See Also
    https://www.khronos.org/registry/glTF/specs/2.0/glTF-2.0.html#reference-gltf

    skins

    Joints and matrices defining a skinned mesh.

    Declaration
    public TSkin[] skins
    Field Value
    Type Description
    TSkin[]
    See Also
    https://www.khronos.org/registry/glTF/specs/2.0/glTF-2.0.html#reference-gltf

    textures

    A texture is defined by an image and a sampler.

    Declaration
    public TTexture[] textures
    Field Value
    Type Description
    TTexture[]
    See Also
    https://www.khronos.org/registry/glTF/specs/2.0/glTF-2.0.html#reference-gltf

    Properties

    Accessors

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

    Declaration
    public override IReadOnlyList<AccessorBase> Accessors { get; }
    Property Value
    Type Description
    IReadOnlyList<AccessorBase>
    Overrides
    RootBase.Accessors
    See Also
    https://www.khronos.org/registry/glTF/specs/2.0/glTF-2.0.html#reference-gltf

    Animations

    An array of keyframe animations.

    Declaration
    public override IReadOnlyList<AnimationBase> Animations { get; }
    Property Value
    Type Description
    IReadOnlyList<AnimationBase>
    Overrides
    RootBase.Animations
    See Also
    https://www.khronos.org/registry/glTF/specs/2.0/glTF-2.0.html#reference-gltf

    Asset

    Metadata about the glTF asset.

    Declaration
    public override Asset Asset { get; }
    Property Value
    Type Description
    Asset
    Overrides
    RootBase.Asset
    See Also
    https://www.khronos.org/registry/glTF/specs/2.0/glTF-2.0.html#reference-gltf

    BufferViews

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

    Declaration
    public override IReadOnlyList<BufferViewBase> BufferViews { get; }
    Property Value
    Type Description
    IReadOnlyList<BufferViewBase>
    Overrides
    RootBase.BufferViews
    See Also
    https://www.khronos.org/registry/glTF/specs/2.0/glTF-2.0.html#reference-gltf

    Buffers

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

    Declaration
    public override IReadOnlyList<Buffer> Buffers { get; }
    Property Value
    Type Description
    IReadOnlyList<Buffer>
    Overrides
    RootBase.Buffers
    See Also
    https://www.khronos.org/registry/glTF/specs/2.0/glTF-2.0.html#reference-gltf

    Cameras

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

    Declaration
    public override IReadOnlyList<CameraBase> Cameras { get; }
    Property Value
    Type Description
    IReadOnlyList<CameraBase>
    Overrides
    RootBase.Cameras
    See Also
    https://www.khronos.org/registry/glTF/specs/2.0/glTF-2.0.html#reference-gltf

    Extensions

    glTF root extensions

    Declaration
    public override RootExtensions Extensions { get; }
    Property Value
    Type Description
    RootExtensions
    Overrides
    RootBase.Extensions
    See Also
    https://www.khronos.org/registry/glTF/specs/2.0/glTF-2.0.html#reference-gltf

    Images

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

    Declaration
    public override IReadOnlyList<Image> Images { get; }
    Property Value
    Type Description
    IReadOnlyList<Image>
    Overrides
    RootBase.Images
    See Also
    https://www.khronos.org/registry/glTF/specs/2.0/glTF-2.0.html#reference-gltf

    Materials

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

    Declaration
    public override IReadOnlyList<MaterialBase> Materials { get; }
    Property Value
    Type Description
    IReadOnlyList<MaterialBase>
    Overrides
    RootBase.Materials
    See Also
    https://www.khronos.org/registry/glTF/specs/2.0/glTF-2.0.html#reference-gltf

    Meshes

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

    Declaration
    public override IReadOnlyList<MeshBase> Meshes { get; }
    Property Value
    Type Description
    IReadOnlyList<MeshBase>
    Overrides
    RootBase.Meshes
    See Also
    https://www.khronos.org/registry/glTF/specs/2.0/glTF-2.0.html#reference-gltf

    Nodes

    An array of nodes.

    Declaration
    public override IReadOnlyList<NodeBase> Nodes { get; }
    Property Value
    Type Description
    IReadOnlyList<NodeBase>
    Overrides
    RootBase.Nodes
    See Also
    https://www.khronos.org/registry/glTF/specs/2.0/glTF-2.0.html#reference-gltf

    Samplers

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

    Declaration
    public override IReadOnlyList<Sampler> Samplers { get; }
    Property Value
    Type Description
    IReadOnlyList<Sampler>
    Overrides
    RootBase.Samplers
    See Also
    https://www.khronos.org/registry/glTF/specs/2.0/glTF-2.0.html#reference-gltf

    Scenes

    An array of scenes.

    Declaration
    public override IReadOnlyList<Scene> Scenes { get; }
    Property Value
    Type Description
    IReadOnlyList<Scene>
    Overrides
    RootBase.Scenes
    See Also
    https://www.khronos.org/registry/glTF/specs/2.0/glTF-2.0.html#reference-gltf

    Skins

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

    Declaration
    public override IReadOnlyList<Skin> Skins { get; }
    Property Value
    Type Description
    IReadOnlyList<Skin>
    Overrides
    RootBase.Skins
    See Also
    https://www.khronos.org/registry/glTF/specs/2.0/glTF-2.0.html#reference-gltf

    Textures

    An array of textures.

    Declaration
    public override IReadOnlyList<TextureBase> Textures { get; }
    Property Value
    Type Description
    IReadOnlyList<TextureBase>
    Overrides
    RootBase.Textures
    See Also
    https://www.khronos.org/registry/glTF/specs/2.0/glTF-2.0.html#reference-gltf

    See Also

    https://www.khronos.org/registry/glTF/specs/2.0/glTF-2.0.html#reference-gltf
    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)