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 castor · Dec 06, 2014 at 02:06 AM · uicanvasdeferred renderingz-buffer

New UI in V4.6 - rendering error using masks in deferred rendering.

For my project I'm using Unity 4.6 new UI system. I'm drawing my canvas in World Space mode and seem to be having a depth buffer render problem.

So this is the setup I have: Just a Canvas with a UI.Image object that has a nested UI.Text (this is the image object) alt text

And if there is ANY geometry behind the text then it wont render it: alt text

This only seems to happen in deferred rendering. If I switch to forward rendering then the text shows up correctly. Is this the normal behaviour? Am I doing something wrong? Are there any workarounds?

mask.jpg (28.6 kB)
error.jpg (22.7 kB)
Comment
Add comment · Show 6
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 castor · Dec 10, 2014 at 06:58 AM 0
Share

Anyone? I could really use some help with this. Any hint on what might help would be very welcome!

avatar image castor · Dec 11, 2014 at 10:40 PM 0
Share

Sorry for the spam but ANY kind of help would be great. I'm currently getting by by changing the lighting to vertex lighting on the UI camera but would like to know what the right way to deal with this problem is.

avatar image kensct · Jan 21, 2015 at 02:37 PM 0
Share

Did you find a workaround other than a 2nd camera?

avatar image castor · Jan 21, 2015 at 04:48 PM 0
Share

$$anonymous$$y game is 3d so every time I want to test the ui I change the main camera rendering technique to forward rendering.... I'm sure there is something going on... I mean the unity tutorial videos are using deferred rendering!

avatar image SomaGames · Jan 22, 2015 at 01:05 AM 0
Share

We are also experiencing this error, has anyone found a solution to this problem?

Show more comments

1 Reply

· Add your reply
  • Sort: 
avatar image
2

Answer by PaulKirsten · Jul 23, 2015 at 09:50 AM

If someone is still interested in solving this issue: UnityIssueTracker-MaskingUIWorldSpace

The problem with mask and deffered rendering should be fixed in Unity 5.2, but for all lower versions you can clear the stencil buffer of the camera: Camera.clearStencilAfterLightingPass

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 fherbst · Jul 23, 2015 at 09:51 AM 0
Share

Thanks, exactly what I needed!

avatar image castor · Aug 21, 2015 at 06:50 PM 0
Share

Is there an estimate to when Unity 5.2 comes out?

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

29 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

Related Questions

Image disappears when Canvas is set to 'Pixel Perfect' 1 Answer

Unity UI 4.6 Canvas Enable/Disable make Accessible 2 Answers

UI: Canvas size changed Event? 1 Answer

How to get a certain child from a Canvas? 1 Answer

Can someone please convert this to C#?Actually I tried but its not working properly.I dont actually want pause menu.I just want to show a canvas after a collision in game. 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