- Home /
GUI Not Showing up?
Okay, so when I make a GUI text, I fill the stuff in, then focus on the text, and nothing appears, but the arrows for moving it around. I try to resize it, but that doesn't work. I am making this for the iPhone menu screen. I also use Windows 7. Someone said i needed something 10 instead of 9. (I forget what) But IDK how to change it! Please help!
That's not a lot to go on and saying "something 10 ins$$anonymous$$d of 9" is just plain funny. How about posting your scripts and what you expect to happen.
Answer by equalsequals · Jul 12, 2010 at 07:32 PM
First of all, you shouldn't be modifying anything GUI in your scene view. You should be using the Inspector Panel for all of this, typing in values manually. GUITextures will not show in the Scene View unless you click the little Graph-like icon in the view's tool bar (next to the light) They are not selectable in-view though.
Unity currently lacks an intuitive 2D-Layer editor so this is the most reliable way of achieving what you want regardless of how tedious it may be.
As an example, in your top most menu bar, go to Game Object > Create Other > GUITexture
This will add a Unity Logo GUITexture to your scene.
From here, this is what you need to edit to achieve the positioning you want:
Inspector > Transform > X,Y,Z: X&Y are a value 0-1 which represents the percentage of the screen space (.5 being 50%, center of the screen). Z is your layering number in 2D space.
Inspector > GUITexture > PixelInset: A Rectangle (X,Y,Width,Height) representation of where on the screen you are drawing the texture.
If you notice with the Unity Logo, it is an pixel inset x of -64 and y of -29, this is half the width and half the height of the texture. Combine this with a Transform X and Y of .5 and you have a pixel-perfect centered image.
Use that as well as the Reference Manual to play around and get the hang of things.
Additionally, just an FYI if you didn't already know - you can't use the Windows version of Unity to make iPhone games - you need a Mac and Unity iPhone (Basic of Advanced) for the end result. This won't stop you from doing some work in your Windows version and then bringing the project over, however.
Cheers,
==
Really? You would think u could do it on windows. Ya i know, I will get unity iPhone when I finish. We have some macs in this house just in case, though im not sure if that is correct.
You can't access any of the iPhone-specific API from Unity (free) or Unity Pro, additionally the only way to publish to a device is via XCode (Intel $$anonymous$$ac only). Apple only allows iPhone development to take place in the $$anonymous$$ac environment. See this Answer for some ref, also do a search and you will see there are many, many, many more threads that all say the same: No iPhone on Windows. http://answers.unity3d.com/questions/2532/plans-for-unity-iphone-on-windows
Answer by Turbine · Jan 12, 2013 at 01:11 AM
This was probably not your mistake, but google took me here for a similar query.
The physics layer matters when rendering GUI's. So make sure your culling masks are set properly.
Your answer

Follow this Question
Related Questions
How to make Iphone Menu-Unity 2 Answers
Please help to create menu follow this Link 0 Answers
How do you increase GUI-Text font size ??? 1 Answer
Pause menu in iPhone 2 Answers