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
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();
}
© 2024 OneMinuteCode. All rights reserved.