Understanding MobileSingleStickControlRig in Unity 4.6.3

Asked 1 years ago, Updated 1 years ago, 83 views

I'd like to use MobileSingleStickControlRig for stick placement.
If you touch the stick, it will be moved to 0,0 coordinates.

I'd like to keep the stick in place, but how can I maintain the initial placement?

unity3d

2022-09-30 20:46

1 Answers

Add Canvas Scaler to MobileSingleStick Canvas and
Simply set UI Scale Mode to Scale With Screen Size
I can handle it to a certain extent. (Unity 5.0.1 supports similar symptoms)

Reference
http://unitymemonote.blogspot.jp/2015/03/asset-mobilesinglestickcontrol.html
http://answers.unity3d.com/questions/917671/unity5-joystick-prefab-snapping-to-bottom-left-cor.html

Additional
http://answers.unity3d.com/questions/917671/unity5-joystick-prefab-snapping-to-bottom-left-cor.html
It would be good to change JoyStick.cs's onEnable() to Start() as stated in the comment.

// void onEnable()
void Start()
{
m_StartPos=transform.position;
CreateVirtualAxes();
}


2022-09-30 20:46

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.