- Home /
Dual joystick Position always resets on playing
I have dual joystick for my android game but when I set the position of the left joystick in the inspector as x=8.4 y=0, z=0 it is fine but when I play, It resets to 0 ,0 , 0. :( it gets shifted at wrong position. No matter what i enter as position in the transform in the inspector, it always resets to 0 when I press play.
Answer by BugFighter · Dec 26, 2015 at 05:43 PM
I know this question is a little old, but I found a solution that worked for me.
I presume that you use the joystick.cs script from the standart assets. Try changing the OnEnable() function into a Start() function. It seems to be a caching problem.
Your answer
Follow this Question
Related Questions
Why is my touch joystick "sticking"? 2 Answers
How do I use android bluetooth controller in unity? 7 Answers
Move object with touch 3D with script 0 Answers
ITouch multi touch with joystick problem 0 Answers