Dela via


XRMarkerSubsystem.Provider.GetChanges(XRMarker, Allocator) Method

Definition

Get the changes to markers (added, updated, and removed) since the last call to GetChanges(XRMarker, Allocator).

public abstract UnityEngine.XR.ARSubsystems.TrackableChanges<Microsoft.MixedReality.OpenXR.ARSubsystems.XRMarker> GetChanges (Microsoft.MixedReality.OpenXR.ARSubsystems.XRMarker defaultMarker, Unity.Collections.Allocator allocator);
abstract member GetChanges : Microsoft.MixedReality.OpenXR.ARSubsystems.XRMarker * Unity.Collections.Allocator -> UnityEngine.XR.ARSubsystems.TrackableChanges<Microsoft.MixedReality.OpenXR.ARSubsystems.XRMarker>
Public MustOverride Function GetChanges (defaultMarker As XRMarker, allocator As Allocator) As TrackableChanges(Of XRMarker)

Parameters

defaultMarker
XRMarker

The default marker. This should be used to initialize the returned NativeArrays for backwards compatibility. See UnityEngine.XR.ARSubsystems.TrackableChanges`1.#ctor(System.Void*,System.Int32,System.Void*,System.Int32,System.Void*,System.Int32,`0,System.Int32,Unity.Collections.Allocator).

allocator
Unity.Collections.Allocator

An Allocator to use when allocating the returned NativeArrays.

Returns

UnityEngine.XR.ARSubsystems.TrackableChanges<XRMarker>

UnityEngine.XR.ARSubsystems.TrackableChanges`1 describing the markers that have been added, updated, and removed since the last call to GetChanges(XRMarker, Allocator). The changes should be allocated using allocator.

Applies to