- Home /
Other
Standard asset question
I have done research on this and was not able to find how to fix it. How do I edit the standard asset - universal single joystick - to reduce joystick range of moment to avoid off screen I want the mobile joysticks in this project to not go outside the screen. I have uploaded a video to YouTube to show what is happening. I want to reduce to overall range of the stick.
If you need the scripts please let me know. They are exactly the same as the stand assets, I have not changed them.
Great question, I am looking for a solution to that issue as well.
$$anonymous$$aybe this could help https://answers.unity.com/questions/890758/how-to-move-an-image-just-in-the-surface-of-the-ca.html
Dunno how the movement is handled but the logic may be the same.
not really, because I dont want to create a whole new script. As you probably know standard asset scripts can sometimes have issues when you change them. So, what i want to do i change it without having an issue. I will give that a shot, but likely it will make the script not function properly.
Well, I doubt many people on this forum want to hunt down the script that controls / clamps movement of that virtual joystick or get it hooked up to answer this question.
Is the joystick a UI element, controlled by scripts to stay on the screen? The immediate and trivial solution would just be to offset its clamp by its pixel dimensions.
I will end this question and post a new one with all the scripts and the was i set it up with video.
Follow this Question
Related Questions
Mobile player controller assistance 1 Answer
Making a bubble level (not a game but work tool) 1 Answer
Disable Camera Movement,Stop camera movement 0 Answers
C# Twitchy Camera Movement 1 Answer
Joystick problem (i only want horizontal movement) 0 Answers