问题描述
我正在使用 Lean touch 使用脚本 SimpleMove(如下所附)移动图像目标上显示的 AR 对象。因此,AR 对象现在可以用手指移动,但如何将其固定在相机边界内?
// SimpleMove
using UnityEngine;
// This script will move the GameObject based on finger gestures
public class SimpleMove : MonoBehavIoUr
{
protected virtual void LateUpdate()
{
// This will move the current transform based on a finger drag gesture
Lean.LeanTouch.MoveObject(transform,Lean.LeanTouch.DragDelta);
}
}
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)