Hi all i was told to come to discord for help with code modding
I cannot for the life of me get this to work, I have managed to change every fov in the game except the main game play one, the alternate camera is fantastic at a higher fov.
Here is a snippet of my code for changing the fov of all cameras in the game (shotgun attempt out of frustration)
What am i missing with this?
private void UpdateFoV(float fov) {
Camera[] allCameras = Camera.allCameras;
foreach (Camera cam in allCameras){
cam.fieldOfView = fov; // Set the FoV for each camera
}
//Camera.main.fieldOfView = fov;
}