Skip to main content

MakeContentAppearAt

Description

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.

Parameters

ParamTypeDescription
_contentTransTransformLookAt transform
_positionVector3Position of content appears
_rotationQuaternionRotation of content appears

Method

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

Example

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);
}