- Home /
Question by
Saint34x · Feb 10, 2014 at 07:13 AM ·
positionjoystickscalinggui-problem
can i find Joystick Position based on screen size?
hey guys, i've been struggling with this most of the night and have had no luck. i've got a pretty simple way to scale my gui buttons based on screen size. but i can't figure out how to get my joysticks to work with it.
basically i scale my gui's by the screen height, then for the buttons (say bottom right corner) i would take the screen height - the GUI size then subtract a buffer so its not right on the edge. same general idea for the width. but i can't figure out how to get this to work with unitys joystick script. i tried messing with Pixel inset but have had no luck. this is one of the very few things i have left to finish this game and would greatly appreciate any help you guys can offer!! thanks!
Comment