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 |