How to properly set the gui texture2d for android?

I want to write any script (C#) to properly set the gui texture2d on the smartphone screen, but how to do that? Any tips for me? I want to set the simple HP bar on the TOP LEFT of the screen.
If you can, please, help me. Thanks.

Hey what version of Unity are you using? Did you know about the new UI system on the upcoming release of unity you can test it on the latest beta 4.6
Here is a tutorial Unity 4.6 - New UI System overview - YouTube
It’s really helpful
You can download the beta 20 here https://unity3d.com/es/unity/beta/4.6

if you want to do it be your self. Look for the window height and width in pixels and get the pixel size of your GUI element then do the maths , calculate the offset from the (0,0) top left corner and so.

But i really recommend you to try the new beta :wink: