android - Is there a better way to block raycast using transparent Image in UGUI(Unity new UI)? -
like when showing popup dialog, i'm using image covers whole screen alpha set 0 raycasting won't go beyond dialog screen. , use tactic lot, somtimes there're 3-5 of transparent images covering screen , makes me worried performance.
so i'd know if there's better way block raycasting in ugui ( except using canvas group's "interactable" property since it's big headache turn on/off ui's under dialog )
if trying block personal "on game"/physics raycasting try unityengine.eventsystems.eventsystem.current.ispointerovergameobject()
it true when on ui element can test before shot raycast. don't know if works touch.
Comments
Post a Comment