hello everyone,
i have a script for steering wheel i want to scale the drawtexture to different resolutions
it looks like this
but what i want like this
hello everyone,
i have a script for steering wheel i want to scale the drawtexture to different resolutions
it looks like this
but what i want like this
You need to change the wheelsize variable (line 3) to Screen.width/10 or whatever number you like.
It’s far easier if you use the new UI in Unity 4.6, in which case you’d make the canvas scaler component scale with screen height, and anchor the graphic in the corner.
–Eric
but how to do this its hard
is there any method to do this ?
when i create gui.button(rect(screen.with0.5,screen.height0.5,250,250),“ee”)
its working fine with different resloutions
but i dont know whats the wrong with wheelPosition = new Rect( screen.with0.5,screen.height0.5, wheelSize, wheelSize );
its not working