I was debugging in VS Code and when I exited Unity seems to have lost the reference to my script. The script still exists and as far as I can tell it remains untouched (correct namespaces), however, the derived class now says it does not exist?
It appears in Unity as a blank file instead of C#, although when I click it it opens correctly in VS Code. I have tried restarting Unity but it remains missing and I cannot start my game due to the errors. The gameObjects with this script are calling “reference script on this Behaviour is missing”. Any ideas how to fix this?
The broken script in question starts with:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class EntityMovement : MonoBehaviour
And the derived script has the following:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerController : EntityMovement
I am also getting spammed with this error message: