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
-1
Question by Not showing my name · Jul 01, 2010 at 07:05 PM · guiguitextappeartimedtitle

Appear after set number of seconds

I am making a title screen, but I can't make the 3d text appear like, immediately after the laser-show finishes, or make it zoom into view. 3d text goes through all objects, so I cannot just put a cube over it and put a timed object destructor on it. What can I do?

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 01, 2010 at 07:37 PM 0
Share

You can make it really small and change the size of it after 3 seconds or have it fly in from off screen

2 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by Mike 3 · Jul 01, 2010 at 07:38 PM

Easiest way I can think of:

function Start() { var textMesh : TextMesh = GetComponent(TextMesh); var originalText = textMesh.text; textMesh.text = "";

 yield WaitForSeconds(3);

 textMesh.text = originalText;

}

Alternatively, set the textmesh's text to "" by default, then just get the textmesh component when your laser show finishes, and change the text to the right text

Edit (since you changed your tags to guiText):

function Start() { var originalText = guiText.text; guiText.text = "";

 yield WaitForSeconds(3);

 guiText.text = originalText;

}

No OnGUI necessary

Comment
Add comment · Show 4 · 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 Not showing my name · Jul 31, 2010 at 09:24 PM 0
Share

dosen't work for some reason.

avatar image Mike 3 · Jul 31, 2010 at 09:33 PM 0
Share

Which part? Also, you're using a Text$$anonymous$$esh on the object, and not another type of text renderer?

avatar image Not showing my name · Aug 03, 2010 at 11:01 AM 0
Share

Expected ';'. add a semicolon at the end. Unexpected Token: Function Something about OnGUI.

avatar image Mike 3 · Aug 03, 2010 at 11:15 AM 0
Share

You may want to post the code then, sounds like it's nothing to do with my code

avatar image
0

Answer by springer · Aug 03, 2010 at 04:24 PM

for 3d text to be occulted like any other surface : use this shader http://www.unifycommunity.com/wiki/index.php?title=3DText

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

No one has followed this question yet.

Related Questions

GUI Text Component Rotate ? 1 Answer

Quick help on a gui script. 1 Answer

How to change font size in ongui function 0 Answers

Why is text so boring in Unity?! 1 Answer

Check if GUI is Pressed 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