- Home /
UI Mask only working in Scene window.
I have a Canvas object with a Panel that has a Mask on it. I added an image to the panel that is twice the size of the panel. In the 'Scene' window, the mask works as expected. However, in the 'Game' window the mask is completely ignored. This is for a PC build. Is there some setting I am missing? I have tried it with an image and a raw image component with the same result.
Answer by jn327 · Jul 29, 2015 at 03:57 PM
I had a similar issue and sorted it with this: http://forum.unity3d.com/threads/ugui-masking-blocked-by-background-meshes.270122/
Think it is something to do with masked UI not getting drawn if there is geometry behind it, looks like it will get fixed in 5.2, see: http://answers.unity3d.com/questions/847971/new-ui-in-v46-rendering-error-using-masks-in-defer.html http://issuetracker.unity3d.com/issues/5-dot-0-deferred-shading-makes-masked-world-space-ui-not-work
Your answer
Follow this Question
Related Questions
Matching the size of UI elements with that of world objects 0 Answers
when switching scenes, old GUI remains on screen 1 Answer
UI with no Ztest appearing behind geometry when masked. 1 Answer
Beta UI 4.6 - Red Cross on runtime objects 1 Answer
Determining if Horizontal Layout Group has room for an element. 0 Answers