Hi, I'm having trouble modifying the FOV in my game using the mainCamera settings. My project uses a FirstPersonCamera, and I tried disabling its scripts, but the FOV property remains locked during runtime. How can I adjust it?
Thanks!
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Update: I found the culprit. It's the PlayerStart in the scene. For some reason is locking the mainCamera FOV. After deleting it, I can control the value on real time again. I might need to make a work around but I'd like to ask, is this as designed?
(AC v. 1.81.4)
The MainCamera's FOV is set by the GameCamera it's attached to. Each frame, the MainCamera will copy its attached GameCamera's data - position, rotation, and FOV.
Each PlayerStart has an associated Camera that gets activated when the Player teleports to it. If you delete it, the Camera won't get snapped to.
To update the FOV, affect that of the GameCamera. If you're using a First-person camera on the Player, you can access ithrough script with:
Thanks! That worked!