Hey, I’m trying to make a class within my main class in c#, but I can’t figure out why the class TestClass and its variables are not being shown in the inspector?
[System.Serializable]
public class TestClass {
public int y;
}
public class MainClass : MonoBehaviour {
public int x;
}