docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ManagedNativeArray<TIn, TOut>

    Wraps a managed TIn[] in a NativeArray<TOut>without copying memory.

    Inheritance
    object
    ManagedNativeArray<TIn, TOut>
    Implements
    IDisposable
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: GLTFast
    Assembly: glTFast.dll
    Syntax
    public sealed class ManagedNativeArray<TIn, TOut> : IDisposable where TIn : unmanaged where TOut : unmanaged
    Type Parameters
    Name Description
    TIn

    Type of items in input array.

    TOut

    Type of items in output NativeArray (might differ from input type TIn).

    Constructors

    ManagedNativeArray(TIn[])

    Wraps a managed TIn[] in a NativeArray<TOut>without copying memory.

    Declaration
    public ManagedNativeArray(TIn[] original)
    Parameters
    Type Name Description
    TIn[] original

    The original TIn[] to convert into a NativeArray<TOut>

    Properties

    nativeArray

    Points to the managed NativeArray<TOut>.

    Declaration
    public NativeArray<TOut> nativeArray { get; }
    Property Value
    Type Description
    NativeArray<TOut>

    Methods

    Dispose()

    Disposes the managed NativeArray<TOut>.

    Declaration
    public void Dispose()

    Implements

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