Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Collinbxyz · Jul 12, 2010 at 07:14 PM · iphonemenuwindows-7gui-text

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!

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image spinaljack · Jul 12, 2010 at 07:31 PM 0
Share

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.

2 Replies

· Add your reply
  • Sort: 
avatar image
1
Best Answer

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,

==

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Collinbxyz · Jul 12, 2010 at 11:50 PM 0
Share

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.

avatar image equalsequals · Jul 13, 2010 at 01:35 PM 0
Share

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

avatar image
0

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.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

1 Person is following this question.

avatar image

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

Menu with 3D-objects - using swipe on iPhone 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges