So basically what I’m doing is having the camera pan around, and then I want it to seamlessly return to the player and return to the Custom setting.
But when the camera changes from scriptable to custom, this ugly jolt happens. I’ve figured out that the camera will attempt to return to the zoom distance it was at the last time it was in custom mode.
Is there any way to override this? I want the return from scriptable to custom to be undetectable by the player.
Would you be able to determine the zoom distance before switching to Scriptable, thus have the correct position to return?
I would like the return distance to be uniform across all players. So I could, but I am trying to figure out a way to position it uniformly regardless of what distance it started at.
A terrible solution that might work: Set the player’s CameraMinZoomDistance and CameraMaxZoomDistance to the zoom distance you want right before switching to Custom. I imagine the camera script will pick up on that and adjust correctly. Then switch it back after a frame.
That’s such a terrible solution that you really shouldn’t do it, but I’m just kinda curious if it would work.
Might be worth looking at the actual camera scripts to see how it works.
That is so ugly.
But it worked haha
¯_(ツ)_/¯