Example #1
0
 protected void Start()
 {
     if (useOnPreRender)
     {
         cameraMethods = CameraCache.Main.gameObject.EnsureComponent <CameraEventRouter>();
         cameraMethods.OnCameraPreRender += OnCameraPreRender;
     }
 }
        protected void OnEnable()
        {
            Initialize();
            UpdateRenderers();
            ToggleClippingFeature(true);

            if (useOnPreRender)
            {
                cameraMethods = CameraCache.Main.gameObject.EnsureComponent <CameraEventRouter>();
                cameraMethods.OnCameraPreRender += OnCameraPreRender;
            }
        }
Example #3
0
 protected void OnCameraPreRender(CameraEventRouter router)
 {
     UpdateRenderers();
 }