Renderer.isVisible Manual     Reference     Scripting  
Scripting > Runtime Classes > Renderer
Renderer.isVisible

var isVisible : bool

Description

Is this renderer visible in any camera? (Read Only)

if (renderer.isVisible)
DoSomeComplexEffect ();

Note: when running in the editor, scene view cameras will also cause this value to be true.

See Also: OnBecameVisible, OnBecameInvisible.