Hello Guest

Author Topic: Can't change FOV  (Read 3031 times)

Roundabout1776

  • Newbie
  • *
  • Posts: 6
    • View Profile
Can't change FOV
« on: May 12, 2014, 08:44:21 am »
Hi. Got 2.4.0
Camera.current.fieldOfView = 60f * nitroModifier;
Camera.main.fieldOfView = 60f * nitroModifier;
playerCamera.camera.fieldOfView = 60f * nitroModifier;
playerCamera.GetComponent<Camera>().fieldOfView = 60f * nitroModifier;
Nothing of these lines change my fov, actually. Only thing i can do is change fov in editor;
Camera is tk2dCamera, ofc.
Pls help.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Can't change FOV
« Reply #1 on: May 12, 2014, 11:04:11 am »
tk2dCamara while in perspective mode will override fov using the zoom scale parameter. In this case, just use a normal unity camera instead, you don't gain anything using the tk2dCamera for this.

ps you can still change the fov on the tk2dcamera and that will get mirrored across or even change ZoomFactor, but I feel it pointless.