教學網站:
- https://gsp40213.pixnet.net/blog/post/231474421-joystick-layout-for-unity3d
- https://unityblenderskillbook.blogspot.com/2021/12/joystick-layout-for-unity3d.html
Joystick 腳本 也可以直接加入Unity UI Image物件。 但是腳本應增加:
private void Start(){
container = GetComponent<Image>();
joystick = transform.GetChild(0).GetComponent<Image>();
}