hey guys, this is my first post, and i’m german, so pls be considerate…
i’m trying to make a zoom funktion with a script which changes the field of view of the camera, but it doesn’t works!
it should zoom in (with right mouse button) and when not pressed, it should zoom out. here the code (dont know how to post codes correctly):
Sooner or later camera.fieldOfView+1 will make it equal to 60 and that doesn’t fit any of your conditions.
I guess you need “<= 60” in your else if block.
yeah i changed the + and -, but that was not the problem, the problem is that Input.GetMouseButton(1) everytime false is… ( btw my mouse is not broken xD)
thx worked (dont know whats the problem with my code -.-)