References not showing up in Inspector.

I am having my students create a flappy bird game take off. I have created this game many times with the same code and no issues. This was working yesterday but today when I created the logic script, added the public references and I save the script, their slots are not appearing in the inspector. I have ditched and remade the script several times and deleted the meta file and reloaded the game it is still not working: Can anyone explain how to get around this?

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

public class LogicScript : MonoBehaviour
{
    public int playerScore;
    public Text scoreText;
}

First thing to check is make sure you have no compiler errors. Any compiler error in any script can prevent the inspector from updating since the compiler doesn’t finish. So, check the console. Are there any errors?

1 Like