I have game object which displays health indicator in my 2d video game in Unity. This gameobject contains a lot of sprites and i put it into left/top corner of the screen. In my game editor it is visible entirely but on my mobile device is visible only half of it. How can i make it visible entirely on all screens? Can anyone help me to solve this problem please.
P.S. I have some ideas how to do this: 1. Create health indicator from GUITexture elements. But it is not good for me, because health indicator consists of a lot of small elements and it will take a lot of time for me to resize every GUITexture according to my needs.
- Put my gameobject with health indicator into another gameobject with zero transform, and then put parent GO into top/left screen using Camera.main.WorldToViewport method.
But may be there is more easy way to do this?