Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 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
2
Question by shark812 · Mar 09, 2016 at 06:22 PM · uiparticlesparticle

How to place a Particle between 2 UI objects?

I need help implementing that scene: i want as result for example a light effect behind a chest in my shop page, so the elements are:

UI Panel -> Particle -> UI Image

I read about making 2 different Canvas, but i was not able to implement it. Can i have a little help? Is this the only way to reach my result?

Thanks in advance to everyone and sorry for eng.

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
36
Best Answer

Answer by shark812 · Mar 11, 2016 at 09:39 AM

I found a solution very easy to implement for my Game, just add to the UI that you want in front of the particle a "Canvas" Conponent and check "Override sorting", then select a sorting layer above the other selected in the main canvas of your scene.

Thanks Simon for the tips!

Comment
Add comment · Show 9 · 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 fugogugo · May 03, 2016 at 11:49 AM 1
Share

seriously dude! your answer helped me a lot! you need more upvotes! thank you!

avatar image shark812 fugogugo · May 03, 2016 at 12:12 PM 0
Share

I'm glad I could help

avatar image AlexandruSpasenie · Aug 15, 2016 at 05:21 PM 0
Share

Thank you for solving my problem as well! Been looking everywhere for this answer.

avatar image Andrew-Le · Feb 21, 2017 at 12:49 PM 0
Share

sir !! can you help me about putting particle in front of UI canvas ?? any image will be help !! thank you sir !!

avatar image fugogugo · Feb 21, 2017 at 03:34 PM 0
Share

@Andrew-Le : uuuhm that one is easy. basically you make the sorting order of particle higher than the Canvas sorting order

open the "Renderer" tab in ParticleSystem . change the "Order in Layer" into higher number. if the particle has child, don't forget to change the order of the child as well

avatar image Natrem · Jul 19, 2017 at 03:07 PM 0
Share

Also with Unity 2017.1.0f3, with a Screen Space - Camera Canvas, particles inside UI (behind a Raw Image and in front of another Raw Image) with matching Z order (not hierarchy) should work. In my case it didn't because Unity was batching stuff, thus it would only be one piece of UI rendered before or after the particle system. To break this and make it work I added canvases with Override sorting checked (even with the same sorting layer and index) on wrongly batched Raw Images.

Show more comments
avatar image
2

Answer by SimonDarksideJ · Mar 10, 2016 at 08:24 PM

I did answer this on the forums but can't find my original answer. In short the UI example asset on the Unity store shows a good example of how to mix particles and UI, you either need to put them on different layers or sandwich them between two screenspace camera / worldspace canvases.

I also found an old post discussing this very subject on the forums, check it out here: http://forum.unity3d.com/threads/particles-within-the-new-gui.265215/ As far as I'm aware nothing has changed on this with U5

Comment
Add comment · Show 1 · 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 shark812 · Mar 11, 2016 at 09:29 AM 0
Share

I was able to do that in the second way, using two different cameras for the UI layers. But i'm not able to accomplish the same putting them on different layers, what am I doing wrong?

avatar image
1

Answer by Lex_Dudya · Oct 07, 2016 at 12:01 AM

I've just released UI Particles package for uGUI. http://u3d.as/AUf

It's a simple drag&drop solution for particles in UI. Not required second camera, work with all type of canvases. Work with sorting inside canvas. And compatible with mobile. alt text alt text


120x630-1.png (168.9 kB)
1200x630.png (119.2 kB)
Comment
Add comment · Show 1 · 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 mahmoud93p · Feb 23, 2019 at 12:42 PM 0
Share

not work your package in screen space camera

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

77 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

Related Questions

Visual Effect Graph Noise 0 Answers

projectile Effect 0 Answers

Particle Effect appears low-quality in-game. 0 Answers

While particle system is alive play animation. 0 Answers

Particle system in UI is not working. 0 Answers


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