Struct TrackableChanges<T>
Holds arrays of changes to trackables (added, updated, and removed). This is typically used by subsystems to report changes each frame.
Implements
Inherited Members
Namespace: UnityEngine.XR.ARSubsystems
Assembly: solution.dll
Syntax
public struct TrackableChanges<T> : IDisposable where T : struct, ITrackable
Type Parameters
Name | Description |
---|---|
T | The ITrackable that can be added and updated. |
Constructors
Name | Description |
---|---|
TrackableChanges(int, int, int, Allocator) | Constructs a TrackableChanges<T> from the number of added, updated, and removed trackables.
This creates the |
TrackableChanges(int, int, int, Allocator, T) | Constructor which creates all three arrays and fills the
added and updated arrays with repeated copies of
|
TrackableChanges(void*, int, void*, int, void*, int, T, int, Allocator) | Constructs a TrackableChanges<T> from native memory. |
Properties
Name | Description |
---|---|
added | An array of added trackables. |
isCreated | Whether the |
removed | An array of TrackableIds that have been removed. |
updated | An array of updated trackables. |
Methods
Name | Description |
---|---|
CopyFrom(NativeArray<T>, NativeArray<T>, NativeArray<TrackableId>, Allocator) | Creates a new TrackableChanges<T> from existing |
Dispose() | Disposes the added, updated, and removed arrays. Safe to call on a default-constructed TrackableChanges<T>. |