I am making a simple script to follow a character and and for some reason, when I enable the script, it only shows the background of the camera once active and nothing else. Everything renders fine without the script attached. Here’s my the important parts of my implementation.
public Transform target;
void FixedUpdate () {
transform.position = new Vector3(target.position.x, target.position.y);
}
target
is set in the inspector to my player game object. Some other information to know is that I can still move my character and when I view the scene, the character is on the camera.