两种方法可以实现单指滑动屏幕旋转模型~请听我细细道来~哈哈
方法一:
1.0 首先添加一个模型。
1.1 给任何ui添加以下脚本。
void OnGUI()
{
print("触摸中~");
if (Event.current.type == EventType.MouseDown)
{
first = Event.current.mousePosition;
}
if (Event.current.type == EventType.MouseDrag)
{
second = Event.current.mousePosition;
if (second.x < first.x)
{
print("left");
Woma