Hello,
I've recently struggled with this issue,
I have my own custom camera setup as the _Cameras _GameCameras, once my scene is all setup player this and that, it works like a charm.
All is good until the next day I launch Unity again and now the game play preview "jerks" the movement is jerky, but watching it in the scene view everything is 100% totally right, no jerky movements happening there for some reason just the game play preview starts jerking as if the "camera" is fighting for some odd reason,
If I disable my component (fun stuff to follow the player) on the camera, obviously the jerkiness disappears, however, if i turn it back on it re-appears,
i went one step further, i disabled the components of the camera and placed it under my character (while in running game play preview) now the camera literally changes z and x axis as the player moves but the camera view itself stays the same.
seems like there is a constant battle between my own custom camera and AC system?
my script to follow the player is fairly straight forward, no idea why this is happening and would really really appreciate the help to remove this bug.
I tried dragging and dropping down the default camera again, nothing changes, the fact is nothing has changed on my camera since it worked and now besides a reboot. if I were to create a new scene (this is the 2nd time re-creating it all) it all works fine until restarted again...
Thanks
Comments
You're asking for help with what's presumably a custom script, without any detail as to what that script does!
The MainCamera is the only camera that should ever be active. "_Camera" cameras are basically references for the MainCamera to latch on to - it'll copy the position / rotation / FOV etc of it's attachedCamera _Camera field.
Disable your own camera component, and use the Camera: Switch Action to snap the MainCamera to it. The MainCamera will snap differently according to what subclass of _Camera it is - so if you have trouble getting it to follow properly, try deriving your script from GameCamera, not _Camera.
With most Actions, however, you get an additional Pause until finished? option. When left unchecked, the system will move onto the next Action while the previous one still runs. Therefore, you can move and player, and the camera, at the same time.
As for the Animation Camera, that can be used in two ways: 1) to play an animation whenever it is made active, and 2) follow it's target (usually the player) according to an animation.
2) allows for cameras that act God Of War-style, if your familiar with that game. Basically, it'll put itself at a set point on an animation curve, according to how far the Player is along a pre-determined Path. See section 4.3 of the manual for more on this feature.