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