How to toggle object visibility relative to camera zoom proximity?
Suppose a cube is the only object in view and the camera is fixed on it.
How could a script be written in C# to toggle cube visibility on / off once the camera is zoomed in / out past a specific threshold?
Any help is greatly appreciated.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612042743im_/https://answers.unity.com/themes/thub/images/avi.jpg)