Hi to all, what’s wrong in this code?
GameObject.Find("Camera01").GetComponent(MotionBlur).active=false;
…i need to activate/deactivate the MotionBlur script on a camera using TimeScale or a simple button!
Thanks
Hi to all, what’s wrong in this code?
GameObject.Find("Camera01").GetComponent(MotionBlur).active=false;
…i need to activate/deactivate the MotionBlur script on a camera using TimeScale or a simple button!
Thanks
Try using enabled instead of active.