docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method CopyFrom

    CopyFrom(NativeArray<T>, NativeArray<T>, NativeArray<TrackableId>, Allocator)

    Creates a new TrackableChanges<T> from existing NativeArrays.

    Declaration
    public static TrackableChanges<T> CopyFrom(NativeArray<T> added, NativeArray<T> updated, NativeArray<TrackableId> removed, Allocator allocator)
    Parameters
    Type Name Description
    NativeArray<T> added

    An array of added elements.

    NativeArray<T> updated

    An array of updated elements.

    NativeArray<TrackableId> removed

    An array of removed elements.

    Allocator allocator

    The allocator to use for each of the added, updated, and removed arrays.

    Returns
    Type Description
    TrackableChanges<T>

    A new TrackableChanges<T> from existing NativeArrays. The caller must Dispose() the returned TrackableChanges<T> to avoid memory leaks.

    In This Article
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Friday, September 22, 2023