- Home /
OnBecameVisible Invisible working with sorting layers
These 2 functions work totally fine for being rendered if a camera is pointing at them. Still I need them to do the work if a sprite is hidden by another sprite. Sorting layers. I read that this is impossible with those 2 functions. Any ideas how can I achieve this easily, without too many liens of code?
To be honest, and maybe useless to you, but i could never get OnBecameVisible to work. I had to use the renderer.visible. The OnBecameVisible function never fired for me :/
Your answer
Follow this Question
Related Questions
How to use isVisible or OnBecameInvisible() to detect player offscreen 1 Answer
Is there a way that I can control the maximum number of Visable Skinned Mesh? 0 Answers
Onbecomevisable, straight up dosnt work. activates but gameobject is not in camera view? 0 Answers
My Enemy isn't moving! 1 Answer
How to reinstate a disabled object when becomes visible? 1 Answer