Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 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 /
  • Help Room /
avatar image
1
Question by LucyLuna · Apr 13, 2016 at 07:21 AM · guiparticlesystem

Hi guys. I need some help with GUI

Really appreciate I'm using GUI to make an inventory .And so far I have just made a crafting system . Now I really want to add some effects when I successfully craft an item .But it seems all the particles was drawn behind the GUI . What should I do now ? Please help . Thank you

untitled.png (296.1 kB)
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 JigneshKoradiya · Apr 13, 2016 at 07:30 AM 1
Share

GUI always Render in top most layer

2 Replies

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

Answer by M-Hanssen · Apr 13, 2016 at 09:08 AM

You can solve this by several approaches:

  1. Use a world space canvas and render the particles in front of the world space canvas. (Dirty solution)

  2. Create different camera layers to render things (Best practice solution)

Create 3 camera's with the following hierarchy: alt text

Set all camera's to "Clear flags = Depth only"

And set the depth of the camera's in the inspector as follow:

Main Camera: Depth = 0

Gui Camera: Depth = 1

Gui Particle Camera: Depth = 2

Now you have to create a layer for the GuiParticles:

alt text

And assign your particle effect to this layer.

In you inventory canvas change the render mode to "Screen space - Camera" and drag your GuiCamera to the "Render Camera" field.

Change the layer of your inventory canvas (recursively) to "UI"

Now finally set the culling masks for each camera as follow:

Main Camera: Everything BUT "UI" and "Particles"

GuiCamera: Nothing BUT "UI"

GuiParticleCamera: Nothing BUT "Particles"

You now have 3 render layers with each their own camera. All stuff marked as layer "Particles" will now be rendered in front of the "UI" layer.


camera.png (1.5 kB)
layers.png (6.7 kB)
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 LucyLuna · Apr 19, 2016 at 10:11 AM 0
Share

thank you so much :)

avatar image udham · Feb 25, 2019 at 12:14 PM 0
Share

hi, @$$anonymous$$-Hanssen thanks for this. but I couldn't understand this part. What you mean by recursively?

{In you inventory canvas change the render mode to "Screen space - Camera" and drag your GuiCamera to the "Render Camera" field. Change the layer of your inventory canvas (recursively) to "UI"}

if you mean by inventory canvas, where other UI elements are, I have 5 Canvasses, should I change all of them to Screen space - Camera? Also, the particle system, should it be in its own Canvas, which has GuiParticleCamera looking?

avatar image
0

Answer by Lex_Dudya · Oct 17, 2016 at 04:00 AM

This plugin can help you https://forum.unity3d.com/threads/released-ui-particles.436611/ No cameras, work with all types of canvases. Simple usage.

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

83 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 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 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 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

Adjusting content display. 0 Answers

Unity Dropdown Menu Not Closing 1 Answer

Do i have to make a scene only for the UI? 0 Answers

Keyboard GUI navigation priority 0 Answers

I Can't make the UI button work in any way! 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