2D Toolkit Forum

2D Toolkit => Support => Topic started by: Roundabout1776 on May 12, 2014, 08:44:21 am

Title: Can't change FOV
Post by: Roundabout1776 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.
Title: Re: Can't change FOV
Post by: unikronsoftware 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.