|
How do I make it so that my GUI textures stay in the top right/left no matter the pixel size. And in the middle on the top. because my problem is my screen on one of my computers is huge compared to the tiny resolution on my laptop. So when I play my game on the laptop you can see the health bar or instructions cause they are to high. So how do you make it so that your GUI textures are allays able to be seen. I need them to be on the top right.. and the top middle. Thanks in advance.
(comments are locked)
|
|
From http://unity3d.com/support/documentation/Components/gui-Basics.html You can use the Screen.width and Screen.height properties to get the total dimensions of the screen space available in the player. /* Screen.width & Screen.height example */
}
(comments are locked)
|
|
Yea this is just like in teh forums and this is NOT WHAT I AM ASKING for. I do not care about the Fucntion o nGUI crap. I'm looking for a way to change the GUI_Texture (NOT MAKE THEM) theis means I have my own picture that I need to move. I do not want to make another rectabgle. I do not care about that in this case. So I need a solution for a GUI_Texture... not GUI
(comments are locked)
|
|
If you create a GUITexture there will be a public variable in the inspector called texture. You can add your own 2D texture here. You can change the position in the transform component X and Y settings. (0, 0) is bottom-left, (1,1) is top right. You could also follow Ben's advice, change Box for Label and add something like the code bellow in the script. This way you'll get full control of the style settings. From Reference Manusal Scripting Guide
(comments are locked)
|

Please use titles and tags that make some sort of sense and are useful.
Guys what he is asking is how to use a matrix4x4.