Hi,
I wanted to know when a gui element ( like button ) is no longer rendered by camera. I know there is a monobehaviour event “OnBecameInvisible” that did this, but it is not working with new gui elements ( with canvas renderer ).
So , any ideas ?
Hi,
I wanted to know when a gui element ( like button ) is no longer rendered by camera. I know there is a monobehaviour event “OnBecameInvisible” that did this, but it is not working with new gui elements ( with canvas renderer ).
So , any ideas ?
you’ll have to compare the element to the camera’s frustum. We currently don’t do that sort of processing.