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

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