Hello
I want to draw a button on the touch screen. At (0,0) screen coordinate system.
Do I have to at each frame recalculate my screen (0,0) according to world coordinate system and then draw my button there or maybe there is a way to say ONCE to unity that this monobehaviour object , my button, lives in screen coordinate system and set it just once ?
Thank you!
You don’t need any code for that. Just position the button where you want it in the scene.
Anyway, you should start by going through the tutorials:
Thank a lot Mikael. I have tried using UI Buttons but they didnt work well for me.
I ended up using canvas, and positioning custom buttons on it. Canvas somehow is not related to a world coordinate system, but to the camera, so this works fine for me.