- Home /
This question was
closed Feb 04, 2016 at 08:25 AM by
blitzcloud for the following reason:
The question is answered, right answer was accepted
Question by
blitzcloud · Jan 31, 2016 at 02:38 PM ·
camerascripting problemexecutablefield of view
FOV script does not change camera FOV on executable, but it does in the unity playtest.
http://answers.unity3d.com/questions/1132620/what-would-be-the-appropriate-take-on-making-the-c.html
Much like the question that I answered myself there, that code seems to work in unity, but as soon as I test the executable file, it does nothing at all.
I wonder if it might be a bug of some sort or simply I don't know something.
Comment
to help you in any way people need to see the code, if you post the code then people will be able to help.
Code's on the link:
static var widescreen:float=1.777777777777778;
static var fov:float=10;
function Start () {
getFOV();
}
static function getFOV (){
Camera.main.fieldOfView=(widescreen/Camera.main.aspect)*fov;
}
As I said, if I test it on unity itself, it works just fine. If I compile it into an executable, it doesn't do the job.