Hi everyone !
I have a concern for a time now and I just don’t know what is the best option. I’m currently developping a mobile game in which you can control a circle and move around on your screen by dragging your finger.
However, I would like its size to be responsive, i.e. adapting to the screen size, getting bigger if the screen is bigger, etc.
My logical approach is to put in inside a UI Canvas whose anchors and sizes are relative to the screen. However, it seems a bit odd to put a gameplay element inside the User Interface, I feel this is not the correct way to do it.
I have considered applying a size by script with data such as Screen.width & Screen.height, thus letting my circle as a gameobject outside the UI, but I don’t think it is the best solution. What do you think is the best thing to do ?
Thank you very much