Question by
agiro · Sep 14, 2017 at 11:57 AM ·
raycastcanvasuser interfaceblocking
A canvas to let through a given layer
I have two canvases, both of them having a UI element on them. At some point, both canvases will be active in the game (I just act like so, I want to make sure that my game works even if that's the case) and I want one of them to never block the other canvas's layer.
These two, let's say Canvas1 is on layer UI and is responsible for character jumping. Canvas2 is on layer toggle time scale and it's job is to switch between timescale 0 and 1. I want Canvas2 to be ALWAYS accessible, so its layer, toggle time scale is NOT blocked by the first canvas. I tried messing around with the Blocking Mask
but that didn't help, sometimes the ray still gets blocked out. How to set up those Blocking Masks
for my canvases to work?
Comment