So I've got my Camera's FOV at 73, and I want to tween it over a couple of seconds to FOV 61.
I'm using HOTween to tween a float between those two values, and on the same state I'm using a Set Property (every frame) to update the FOV.
It works, however when doing this for the first time after loading the scene, for 1 frame the FOV is set to 0 and I get an error
(Screen position out of view frustum (screen pos 152.000000, 330.000000) (Camera rect 0 0 816 459)
UnityEngine.SendMouseEvents:DoSendMouseEvents(Int32, Int32)
I've tried the different options, like Update/Late Update/Fixed Update, but it always sets it to 0 before the values I actually want!
I've checked before pressing my button, and the FOV target/start floats are correct. It just goes 0-73....tweening to 61.
If I then zoom back out (similar action, just with the Start/End values switched), and then zoom in again - there's no 0 used. And it works perfectly.
I've been fiddling with this for the last hour and it's driving me insane!
Any ideas?