Variables not showing up on editor

I’m making a simple interaction system based off this tutorial but when I make the script and check my project, I don’t have any variables even if I serialize everything. I know everything is correct since it was working until I booted it up again yesterday and now the variables are gone. Help? I’ve tried every fix in the book.

image

image

It should look like the first dropdown but looks like the second. I beg for help :frowning:

using System.Collections;

using System.Collections.Generic;

using UnityEngine;

public class Keypad : Interactable

{

[SerializeField]

private GameObject door;

private bool doorOpen;

// Start is called before the first frame update

void Start()

{

}

// Update is called once per frame

void Update()

{

}

protected override void Interact()

{

doorOpen = !doorOpen;

door.GetComponent<Animator>().SetBool("IsOpen",doorOpen);

}

}

Are there any compiler errors currently in your project?

Nope none. I have other scripts as well and I’m able to see their variables.

image
Select ‘debug’ and then check if its variable exists.