{!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} Interface IGltfReadable | Unity glTFast | 6.0.1
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IGltfReadable

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

    Namespace: GLTFast
    Assembly: solution.dll
    Syntax
    public interface IGltfReadable

    Properties

    Name Description
    ImageCount

    Number of images

    MaterialCount

    Number of materials

    TextureCount

    Number of textures

    Methods

    Name Description
    GetAccessor(int)

    Creates a generic byte-array view into an accessor. Only available during loading phase as underlying buffers are disposed right afterwards.

    GetBindPoses(int)

    Returns an array of inverse bone matrices representing a skin's bind pose suitable for use with UnityEngine.Mesh.bindposes by glTF skin index.

    GetDefaultMaterial()

    Returns a fallback material to be used when no material was assigned (provided by the IMaterialGenerator)

    GetImage(int)

    Get texture by glTF image index

    GetMaterial(int)

    Get a Unity Material by its glTF material index

    GetSourceCamera(uint)

    Get source (de-serialized glTF) camera

    GetSourceImage(int)

    Get source (de-serialized glTF) image

    GetSourceLightPunctual(uint)

    Get source (de-serialized glTF) light

    GetSourceMaterial(int)

    Get source (de-serialized glTF) material

    GetSourceNode(int)

    Get source (de-serialized glTF) node

    GetSourceScene(int)

    Get source (de-serialized glTF) scene

    GetSourceTexture(int)

    Get source (de-serialized glTF) texture

    GetTexture(int)

    Get texture by glTF texture index

    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)