I can't changing my Camera FOV, evan i used the official documentation

i used this

and error

Assets\Script\CamFOV.cs(19,16): error CS0117: 'Camera' does not contain a definition for 'main'

appear, how can i fix it

In the example you showed, it’s using the the static property main in the Camera class, if your camera is already passed to the script just use .fieldOfView directly