I’ve obviously not set something up properly in my space, but I don’t know what.

I’ve just attached this C# script to my camera:

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class CameraMovement : MonoBehaviour
{

    public Transform player;
    public Vector3 offset;

    // Start is called before the first frame update
    void Start()
    {
        
    }

    // Update is called once per frame
    void Update()
    {
        transform.position = new Vector3(player.position.x + offset.x, player.position.y + offset.y);
    }
}

Yet for some reason this now hides my 2D Player object. If I disable the script on the camera, the player ship shows up fine.

Below are screenshots of the set up of each object.

Any help would be greatly appreciated!

change to

transform.position = new Vector3(player.position.x + offset.x, player.position.y + offset.y, -10);