- Home /
why the function OnBecameVisible and OnBecameInvisible doesn't work in canvas renderer ?
Today I used OnBecameInVisible or OnBecamInvisible to make sure when the image is visible or invisible from mask ,so I can do something at that moment. But it doesn't work .Why other gameobject works as usual?And what should I do for this?
Answer by unmaxim · Mar 09, 2017 at 08:02 PM
seems because it checks 3D stuff...
try this solution: https://forum.unity3d.com/threads/test-if-ui-element-is-visible-on-screen.276549/#post-2978773
Your answer
Follow this Question
Related Questions
OnBecameVisible Invisible working with sorting layers 0 Answers
OnBecameVisible and OnBecameInvisible with LOD group. 2 Answers
Activate Game object when in Camera view and deactivate when out of camera view. 2 Answers
How do I stop a moving object when the Camera sees it 1 Answer
How do I trigger the visibility of an object through OnBecame(In)visible? 0 Answers