Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 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 /
avatar image
4
Question by Nerull22 · Dec 11, 2014 at 05:51 PM · uicanvasnew uiparticle-system

Particle System In 4.6 UI

I'm trying to make a particle system that will show on top of UI elements. This seems to be an impossible dream at this point. Which is odd because I had it working at one point. I have tried to separate the particle system onto a separate canvas with a higher sorting layer, put it on a world canvas, put it in the 3D world separate from any canvas, etc. No matter what I do, it still shows behind the UI. Any help with this would be greatly appreciated.

If any more information is required, please let me know and I'll update as quickly as I can. Thanks in advance.

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 Spuddicus · Feb 26, 2015 at 05:39 PM 0
Share

I've spent about 5 hours trying everything on this thread and on other web pages and just can't get particles to render on top of the Unity 4.6 UI. Anyone had any success? I get the feeling the above solutions are for the older UI?

6 Replies

· Add your reply
  • Sort: 
avatar image
3

Answer by Nerull22 · Dec 18, 2014 at 06:03 PM

Sorry for letting this slip. So the way that me and my team solved it was by putting the particle effects on a separate layer and created a new camera to render just that layer and put it on a higher depth and set it to not clear anything. So it is actually being rendered SecoND on the separate camera. Hope this helps.

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 LordYabo · Feb 04, 2015 at 07:08 PM 0
Share

Thank you, this worked for me!

avatar image Naphier · Mar 01, 2015 at 07:08 AM 0
Share

This sort of works for me. Cleaner than many of the ideas I've seen so we'll probably stick with it. With this process I have to switch on the camera after the UI is shown for the particles to start rendering. Wonky, but it seems to work. Thanks!

avatar image
3

Answer by Derek-Wong · Feb 08, 2015 at 01:06 PM

I work out particles on UI by this:

  1. as most of you have mentioned, your ui canvas should be scree space -camera / world, then you should give that canvas a sorting layer.

  2. for position purpose, you should put your particle system in another canvas that have a sorting layer that will over your ui canvas

  3. put a script on the particle system:

    particleSystem.renderer.sortingLayerName = "particle";

the "particle" layer here should be a sorting layer on top of your UI canvas sorting layer

And that's work for me~

  • if you want some of the UI over the particle, and some under them, you can create some more canvas and it also works.

  • don't know why the code editor here not work for me :/ cannot post code

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
avatar image
1

Answer by lilboylost · Dec 18, 2014 at 05:38 AM

Only if I set sorting layer to Default with order 0. Then Particles will be rendered in front of UI assuming they are in front of camera. No idea why it is so messed up..

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
avatar image
1

Answer by NeilM0 · May 08, 2015 at 05:50 PM

In my case I fixed this issue by:

Canvas: Screen Space - Camera

Camera's culling mask is set to UI

Clear flags: Either depth only or don't clear (both seem to work)

Particles are on the UI layer

Particle GameObject has the following script on it:

 void Start () 
 {
     ParticleSystem ps = GetComponent<ParticleSystem> ();
     ps.renderer.sortingLayerName = "Particles";
 }

Sorting Layers are setup like this:

 Layer 0  Default
 Layer 1  Particles









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
avatar image
0

Answer by Kiwasi · Dec 11, 2014 at 06:06 PM

To make world elements appear in front of the canvas you need the canvas to be in screen space - camera or in world space. In camera space you simply push the plane back. In world space you manually position the camera in the scene.

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 Nerull22 · Dec 11, 2014 at 06:07 PM 0
Share

I've tried this. I have the particle system on a screen canvas, and the UI elements on a separate screen canvas. And the UI elements canvas is way way way back away from the camera, and the particles are much closer to the camera. The particles are still behind the UI elements. I've also tried putting them on separate sorting layers to hopefully fix it, and the sorting layers didn't solve the problem either.

Edit: What I meant was that all of these were screen space - Camera's. Not overlays, if that was unclear.

avatar image VotaVader · Dec 12, 2014 at 08:23 PM 0
Share

I'm having the same problem. Did you ever manage to fix this?

avatar image Malapropos · Feb 08, 2015 at 12:42 PM 0
Share

I'm also looking for a fix to this.

  • 1
  • 2
  • ›

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

32 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

Related Questions

Unity 4.6 How to change slider color via script 2 Answers

GUI.RepeatButton funcionality with new Unity UI (4.6.x) 2 Answers

4.6 UI Canvas moves on Play, but not really? 0 Answers

Fall down a line in Unity 4.6 text via script 3 Answers

Push a UI-Element away with another 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