Event that is fired before any camera starts culling.
See Also: CameraCallback, onPreRender, onPostRender.
no example available in JavaScript
using UnityEngine; public class ExampleClass : MonoBehaviour { // callback to be called before any culling public void MyPreCull(Camera cam) { Debug.Log("PreCull: " + cam.gameObject.name); } public void OnEnable() { // register the callback when enabling object Camera.onPreCull += MyPreCull; } public void OnDisable() { // remove the callback when disabling object Camera.onPreCull -= MyPreCull; } }