Is this renderer visible in any camera? (Read Only)
if (renderer.isVisible)
ProcessData.AndDoSomeComplexEffect();
using UnityEngine;
using System.Collections;
public class example : MonoBehaviour {
void Example() {
if (renderer.isVisible)
ProcessData.AndDoSomeComplexEffect();
}
}
import UnityEngine
import System.Collections
class example(MonoBehaviour):
def Example():
if renderer.isVisible:
ProcessData.AndDoSomeComplexEffect()
See Also: OnBecameVisible, OnBecameInvisible.