跳到主要内容

MakeContentAppearAt

描述

This does not move the content; instead, it moves and orients the ARSessionOrigin such that the content appears to be at the raycast hit position.

参数

参数类别描述
_contentTransTransform对齐对象
_positionVector3内容出现的位置
_rotationQuaternion内容出现的角度

方法

public void MakeContentAppearAt(Transform _contentTrans, Vector3 _position, Quaternion _rotation)

例子

internal static API ARMODAPI = new API(nameof(APITest));
private void OnLoad(){
var tmp_VirtualObjectTransform = GameObject.Find("VirtualObject").transform;
ARMODAPI.MakeContentAppearAt(tmp_VirtualObjectTransform,tmp_VirtualObjectTransform.position,tmp_VirtualObjectTransform.rotation);
}