Edytuj

Udostępnij za pośrednictwem


ARSession.CreateReferenceObject Method

Definition

Creates and returns a reference object from a region in space.

[Foundation.Export("createReferenceObjectWithTransform:center:extent:completionHandler:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 12, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void CreateReferenceObject (OpenTK.NMatrix4 transform, OpenTK.NVector3 center, OpenTK.NVector3 extent, Action<ARKit.ARReferenceObject,Foundation.NSError> completionHandler);
abstract member CreateReferenceObject : OpenTK.NMatrix4 * OpenTK.NVector3 * OpenTK.NVector3 * Action<ARKit.ARReferenceObject, Foundation.NSError> -> unit
override this.CreateReferenceObject : OpenTK.NMatrix4 * OpenTK.NVector3 * OpenTK.NVector3 * Action<ARKit.ARReferenceObject, Foundation.NSError> -> unit

Parameters

transform
NMatrix4

The transform to the position and orientation of the region from which to create a reference object.

center
NVector3

The center of the region.

extent
NVector3

The exent of the region, in the transform coordinate space.

completionHandler
Action<ARReferenceObject,NSError>

A handler that receives the created object, if present, and any error that occurs.

Attributes

Applies to