Question by
andycreeper09 · Apr 17 at 09:06 PM ·
camera2d gameplayercamera-movement2d-gameplay
Camera moves impossibly fast, and can't see any object
When the Player is a child of the camera, the camera sees the player, but moves impossibly fast. When the Player isn't a child of the camera, It doesn't get seen by the camera when built.
Camera script:
using UnityEngine;
public class PlayerCam : MonoBehaviour
{
public GameObject player;
void Update()
{
gameObject.transform.position = player.transform.position;
}
}
(Unity 2020.3.30f1)
Sorry I don't have more info, I'm just really confused.
Comment
Answer by andycreeper09 · Apr 18 at 05:59 AM
I just deleted and recreated the camera... and it worked!
Your answer
Follow this Question
Related Questions
How to Parent a Camera to the Head Bone with No Camera Shake? 0 Answers
moving the camera smoothly to players current position in unity 2 Answers
Stop the camera at the edge of the scene? 2DGame 0 Answers
How to stop the camera when the player has reached the edge of the level? 2 Answers
2D Smooth Camera Movement 1 Answer