ARSession.CreateReferenceObject 方法

定义

从空间中的区域创建并返回引用对象。

[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

参数

transform
NMatrix4

转换到要从中创建引用对象的区域的位置和方向。

center
NVector3

区域的中心。

extent
NVector3

区域在坐标空间中的 transform 外部值。

completionHandler
Action<ARReferenceObject,NSError>

一个处理程序,用于接收创建的对象(如果存在)以及发生的任何错误。

属性

适用于