Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

camera follow

public Transform player;

    public Vector3 offset;

    void LateUpdate()
    {
        transform.position = player.position + offset;
    }
 
PREVIOUS NEXT
Tagged: #camera #follow
ADD COMMENT
Topic
Name
5+1 =