How to edit standard asset - universal single joystick - 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 of the stick but keep the movement of the player and camera relatively the same.

If you need the scripts please let me know.

Error with joystick

thank you.

i can’t watch the video but i suggest you usingMathf.Clamp(min,max) to clamp position x of joystick.