Answers for "how to have camera follow player unity"

9

camera follow

public Transform player;

    public Vector3 offset;

    void LateUpdate()
    {
        transform.position = player.position + offset;
    }
Posted by: Guest on June-11-2020

Code answers related to "how to have camera follow player unity"

Browse Popular Code Answers by Language