Hi all, I did not initially plan on having camera movement in my project. But, now that I’m trying to implement it, I’m noticing a very problematic issue.
The camera object is not a child of any object, but instead it has this code telling it to follow the player object:
Make sure that the update of the camera transform is always performed after the update of the object it should follow. You can achieve this by putting it in a LateUpdate.
As you have it in a LateUpdate in your code, my guess is that you either have the script on the camera itself and not on the gameObject it should follow or you update the transform of your followed gameObject in a LateUpdate too.