Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

pcamera

using UnityEngine;

public class MoveCamera : MonoBehaviour {

    public Transform player;

    void Update() {
        transform.position = player.transform.position;
    }
}
 
PREVIOUS NEXT
Tagged: #pcamera
ADD COMMENT
Topic
Name
3+1 =