Unity3d 外掛程式研究之EasyTouch外掛程式

2021-08-21 00:12:38 字數 4435 閱讀 1831

unity3d easytouch 初步使用教程(詳細) 

unity外掛程式easytouch學習記錄 

【unity外掛程式】easytouch5教程 

unity外掛程式——easytouch的使用 

第二:第三:

第四:

void onenable()  

// 此函式是搖桿移動中所要處理的事

void onjoystickmove(movingjoystick move)

float positionx = move.joystickaxis.x; // 獲取搖桿偏移搖桿中心的x座標

float positiony = move.joystickaxis.y; // 獲取搖桿偏移搖桿中心的y座標

if (positiony != 0 || positionx != 0)

}

}  

// update is called once per frame

void update ()

void onenable()

void ondisable()

void ondestroy()

/// /// 重置cube和相機

///

void resetscene()

/// /// 滑動使cube旋轉

///

///

void on_swipe(gesture ges)

/// /// 拖拽移動cube

///

///

void on_drag(gesture ges)

} /// /// 雙指滑動 平面移動相機

///

///

void on_swipe2fingers(gesture ges)

/// /// 拉近拉遠相機

///

///

void on_pinch(gesture ges)

void onenable()    

//移動搖桿結束

void onjoystickmoveend(movingjoystick move)

}

//移動搖桿中

void onjoystickmove(movingjoystick move)

//獲取搖桿中心偏移的座標

float joypositionx = move.joystickaxis.x;

float joypositiony = move.joystickaxis.y;

if (joypositiony != 0 || joypositionx != 0)

}

// verification that the action on the object

if (gesture.pickobject == gameobject)

}

// verification that the action on the object

if (gesture.pickobject == gameobject)

}

// verification that the action on the object

if (gesture.pickobject==gameobject)

}

// verification that the action on the object

if (gesture.pickobject==gameobject)

}

// verification that the action on the object

if (gesture.pickobject==gameobject)

}

// verification that the action on the object

if (gesture.pickobject == gameobject)

}

// verification that the action on the object

if (gesture.pickobject == gameobject)

}

// verification that the action on the object

if (gesture.pickobject == gameobject)

}

// verification that the action on the object

if (gesture.pickobject == gameobject)

}

// verification that the action on the object

if (gesture.pickobject == gameobject)

}

// verification that the action on the object

if (gesture.pickobject == gameobject)

}

// verification that the action on the object

if (gesture.pickobject == gameobject)

}

// verification that the action on the object

if (gesture.pickobject == gameobject)

}

// verification that the action on the object

if (gesture.pickobject == gameobject)

}

// verification that the action on the object

if (gesture.pickobject == gameobject)

}

// verification that the action on the object

if (gesture.pickobject == gameobject)

}

if (gesture.pickobject == gameobject)

}

// verification that the action on the object

if (gesture.pickobject == gameobject)

}// during the txist

void on_twist( gesture gesture)

}

// verification that the action on the object

if (gesture.pickobject == gameobject)

}

// verification that the action on the object

if (gesture.pickobject == gameobject)

}// during the drag

void on_drag2fingers(gesture gesture)

}

// verification that the action on the object

if (gesture.pickobject == gameobject)

}

float angle = move.axis2angle(true);

transform.rotation = quaternion.euler( new vector3(0,angle,0));

transform.translate( vector3.forward * move.joystickvalue.magnitude * time.deltatime);

model.getcomponent().crossfade("run");

}

**:

unity3d研究之版本管理(SVN)

unity進行多人協作開發時必定會涉及資源 配置的版本管理。這裡介紹一下用svn git或其它版本管理系統進行unity工程版本管理的方法。新建乙個unity工程,目錄結構基本是這樣的 最終大約是這樣 unity工程中有很多二進位制檔案,會頻繁導致衝突,library目錄的檔案在每次unity ed...

unity3D 搞定任意ios外掛程式

說起unity調ios外掛程式,好多淫比較頭痛,探索再此給大家獻上通用手冊。首先 需要需要一些oc知識,在oc中所有的介面都是基於view顯示的,而要使用第三方提供的ios sdk 僅需簡單修改源 把相應view新增到unity build出來的xcode工程的根view上即可。也許有人在罵,這不廢...

unity3D 搞定任意ios外掛程式

說起unity調ios外掛程式,好多淫比較頭痛,探索再此給大家獻上通用手冊。首先 需要需要一些oc知識,在oc中所有的介面都是基於view顯示的,而要使用第三方提供的ios sdk 僅需簡單修改源 把相應view新增到unity build出來的xcode工程的根view上即可。也許有人在罵,這不廢...