Unity Day One technical point (10) Add particle effects---UI

Source: Internet
Author: User
When I recently added a particle effect to the UI, it was always obscured by the UI.
The workaround is to:
Because the render order column of the particle system defaults to 3000, and the Ngui render order defaults to 3000, the GUI renders in a higher order than 3000 when there are nested panels, or when depth a higher panel.
The solution is to
1. Modify the default Renderqueue in the UIPanel script in Ngui, adjust to less than 3000 so that the particle effects are not obscured, and when some windows need to be displayed on the effects, adjust the renderer q option in the inspector to start at, A value of 3000 or more can be resolved, but my Ngui version is 3.1.6, so you can adjust it directly.
2. Use a different camera to display the effects. However, it is not very well controlled when the UI window switches between each other.
3. Modify the Rendererqueue value in the shader of the particle effect.

Unity Day One technical point (10) Add particle effects---UI

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.