OnPreRender se llama antes de que la cámara comience a renderizar la escena.
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; } }