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 TMK · Jun 07, 2010 at 04:01 PM · particlesparticlesystemguitext

Draw Particles over Text (GUIText or GUI.Label)

Hi!

Is there any way to draw a particle effect, using e.g. ParticleSystem, to draw it over text drawn using either GUIText or GUI.Label?

I need to move a particle effect over a text the user selects, and need to draw it over the text as it looks kind of strange being drawn behind the text...

Or perhaps someway of turning text into a texture, and drawing it as a normal gameobject behind the particles or something?

Thanks! :)

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

3 Replies

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

Answer by Eric5h5 · Jun 07, 2010 at 05:11 PM

You have to use more than one camera: put the particle system on a layer of its own, which is drawn by a camera that only shows that layer, and has clear flags set to depth only. This camera should have a higher depth so it draws on top of the camera that has the GUIText, and the particle system camera shouldn't have a GUILayer component. This will only work with GUIText/GUITexture and not OnGUI functions, which seem to be drawn on top of everything regardless. There's an answer around somewhere which explains the camera setup in more detail if you need that.

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 TMK · Jun 07, 2010 at 11:50 PM 0
Share

Ahh, that works nicely, thanks! :)

avatar image DarkSlash · Jan 05, 2012 at 07:28 PM 0
Share

there's some step by step tutorial for that? I have the same problem!

avatar image NickP_2 · May 05, 2014 at 10:17 PM 0
Share

Thanks, works perfectly :D

avatar image
1

Answer by Tetrad · Jun 07, 2010 at 04:17 PM

I don't think there is a way to do specifically what you ask for (although I haven't tried the render to texture approach personally), but you could do it by making your text out of a text mesh. You'll have to use a different shader for your text mesh material so it gets sorted properly instead of drawn on top of everything always. There's an example of one here.

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 TMK · Jun 07, 2010 at 11:52 PM 0
Share

Cool, that works, thanks! The 3D text was more blurry than a regular GUIText though, so I might go for the multiple-camera answer ins$$anonymous$$d if I'm not able to fix the more blurry text.

avatar image Tetrad · Jun 07, 2010 at 11:58 PM 0
Share

Another solution would be to import a higher-res font (in the import settings change the font size) if that's what's causing your blurryness.

Also please be sure to mark the question as "answered".

avatar image TMK · Jun 08, 2010 at 02:17 PM 0
Share

Thanks, I tried that, but it still wasn't as clear as 100% GUIText or GUI.Label... :(

avatar image
0

Answer by jonas-echterhoff · Jun 07, 2010 at 10:51 PM

Instead of GUIText or GUI.Label, use the TextMesh component (GameObject->Create->3d Text). That gives you a text mesh, which you can freely place in your 3d world.

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

2 People are following this question.

avatar image avatar image

Related Questions

unable to disable game object after user input 1 Answer

Particles suddenly dissapear after bouncing on plane 0 Answers

Problem using point.Length in a particle system c# 2 Answers

How do I pull particles towards the player? (Javascript) 0 Answers

particleSystem.Play(); wont start 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