docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IGltfAccessors

    Provides read-only access to typed glTF accessor data.

    Namespace: Unity.Cloud.Gltfast
    Assembly: Unity.Cloud.Gltfast.dll
    Syntax
    [MovedFrom(true, "GLTFast", "glTFast", null)]
    public interface IGltfAccessors
    Remarks

    The data is decoded into Unity's coordinate system and value range. For a glTF asset's data as stored, use IGltfBufferData instead.

    Methods

    GetAccessorData<T>(int)

    Provides an accessors typed data.

    Declaration
    NativeArray<T>.ReadOnly GetAccessorData<T>(int accessorIndex) where T : unmanaged
    Parameters
    Type Name Description
    int accessorIndex

    glTF accessor index.

    Returns
    Type Description
    NativeArray<T>.ReadOnly

    The requested data or a non-initialized readonly native array if the request couldn't be handled.

    Type Parameters
    Name Description
    T

    Accessor member type.

    In This Article
    Back to top
    Copyright © 2026 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)