docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IGltfReadable<TRoot>

    Provides read-only access to a glTF (schema and imported Unity resources)

    Inherited Members
    IGltfReadable.MaterialCount
    IGltfReadable.ImageCount
    IGltfReadable.TextureCount
    IGltfReadable.GetMaterial(int)
    IGltfReadable.GetDefaultMaterial()
    IGltfReadable.GetImage(int)
    IGltfReadable.GetTexture(int)
    IGltfReadable.IsTextureYFlipped(int)
    IGltfReadable.GetSourceCamera(uint)
    IGltfReadable.GetSourceMaterial(int)
    IGltfReadable.GetSourceMeshPrimitive(int, int)
    IGltfReadable.GetSourceNode(int)
    IGltfReadable.GetSourceScene(int)
    IGltfReadable.GetSourceTexture(int)
    IGltfReadable.GetSourceImage(int)
    IGltfReadable.GetSourceLightPunctual(uint)
    IGltfReadable.GetBindPoses(int)
    IGltfReadable.GetAccessor(int)
    IMaterialProvider.GetMaterialAsync(int)
    IMaterialProvider.GetMaterialAsync(int, CancellationToken)
    IMaterialProvider.GetDefaultMaterialAsync()
    IMaterialProvider.GetDefaultMaterialAsync(CancellationToken)
    IMaterialProvider.GetMaterialsVariantsSlots(int, int)
    IMaterialsVariantsProvider.MaterialsVariantsCount
    IMaterialsVariantsProvider.GetMaterialsVariantName(int)
    Namespace: GLTFast
    Assembly: glTFast.dll
    Syntax
    public interface IGltfReadable<out TRoot> : IGltfReadable, IMaterialProvider, IMaterialsVariantsProvider where TRoot : RootBase
    Type Parameters
    Name Description
    TRoot

    glTF root (de-serialized glTF JSON) class type

    Methods

    GetSourceRoot()

    Get source root (de-serialized glTF JSON). This is intended for read-only access. Changes might corrupt data and break subsequent scene instantiation.

    Declaration
    TRoot GetSourceRoot()
    Returns
    Type Description
    TRoot

    De-serialized glTF root object

    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)