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 Aladine · Aug 02, 2014 at 10:11 AM · instantiateguitextinvisible

GUIText is invisible after instantiate

Hello,

Am trying to instantiate a GUItext when it's needed (making a game similar to doodle jump and i want to indicate the height after a certain distance). This should be a very simply task to do but for some reason when instantiate the GUIText, i just don't see it, it's there, no error and the text field contain the correct string but it is not there, anyone faced and solved this problem before ?

Thank you.

Comment
Add comment
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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Arcadewiz · Aug 02, 2014 at 10:21 AM

Why do you require to instantiate it. Just disable/enable it. Check this and see if it helps

http://answers.unity3d.com/questions/48753/how-to-enabledisable-guitext-through-javascript.html

Comment
Add comment · Show 3 · 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 Aladine · Aug 02, 2014 at 10:41 AM 0
Share

because the number of GUItext i need is unknown, i don't know how far the player will go, and i need to instantiate a number (10m, 20m...100m,etc...) with every platform, and these (platforms) are instantiated everytime the player travel 10meters (10 unity unit). Also, why GUItext become invisible in the first place ? this is really strange. thanks.

avatar image Arcadewiz · Aug 02, 2014 at 11:00 AM 0
Share

Try running your scene and checking the inspector of the instantiated GUIText at runtime to see if you can find what components are not working or why it is not showing. Then you could share it here as to exactly what the inspector shows...

avatar image Aladine · Aug 02, 2014 at 11:31 AM 0
Share

Oh!! it's the y position that is messed up !! i will try to figure it out now and see what i can do (GUI is the only thing i hate in unity -_- )

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

23 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

GUIText Instantiation and Update the Instantiated Text. C# 1 Answer

GUIText Instantiation to show at Asteroid position 0 Answers

Instantied 2D Prefab Is Invisible 1 Answer

Instantiate GUI Text at world position 2 Answers

instantiated objects are invisible although 2 meters big. 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