Edytuj

Udostępnij za pośrednictwem


ARSessionDelegate_Extensions.DidUpdateFrame Method

Definition

Indicates that frame has been updated due to tracking.

public static void DidUpdateFrame (this ARKit.IARSessionDelegate This, ARKit.ARSession session, ARKit.ARFrame frame);
static member DidUpdateFrame : ARKit.IARSessionDelegate * ARKit.ARSession * ARKit.ARFrame -> unit

Parameters

This
IARSessionDelegate

The instance on which this extension method operates.

session
ARSession

The session that is supplying the information for the event.

frame
ARFrame

The frame that was updated.

Remarks

Developers who override this method must be sure to call M:System.IDisposable.Dispose* on the frame when they have finished processing. Internally, ARKit only generates a new ARFrame object when there are no more references to an existing frame. If M:System.IDisposable.Dispose* is not called, ARKit will not produce until the GC collects the frame. This typically appears as a frozen, non-responsive, or "severely stuttering" video feed.

Applies to