Unity Inspector Debug doesn't show class variables

Hi! I’m working on the Terminal Hacker problem, but I’ve run into an issue. When the instructor first introduced the Unity debugger in the Inspector panel, my class variables were displayed as expected. At some point since then, they’ve stopped displaying. Does anyone know what might have happened and how to fix it?

string[] level1Passwords = { "books", "aisle", "shelf", "password", "font", "borrow" };
  string[] level2Passwords = { "prisoner", "handcuffs", "holster", "uniform", "arrest" };

  int level;
  enum Screen
  {
    MainMenu,
    Password,
    Win
  }
  Screen currentScreen;
  string password;

Hi @Ds_Tara,

Please select the WM2000 game object in your Hierarchy. At the moment, the script is selected.

Was this what you were looking for?


See also:

YES! That was exactly my problem. Thanks!

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms