- Home /
Debug inspector not showing private varibles! + Header issues
Debug mode is on in the Inspector
But it wont display private variables? Anyone know why? (I'm in unity 2019.1.0b1) Debug mode is on in the Inspector
What happened Set inspector to Debugmode Doesn't display any private varibles
Headers aren't showing in the inspector if a private (none [SerializeField]) varible is below them in code even if public varibles are below.
How we can reproduce it using the example you attached Create script put in private varibles and Headers Set inspector to Debug
Could you post your code maybe I can help you if you post your script.
I have a question, why didn't you use [SerializeField] to display your private variables? Like that:
[SerializeField] private int number;
For the header issue could you please send the part of your code you defined variables? Because it is likely to be about your scripts.
Answer by Esteem · Jul 15, 2019 at 11:38 AM
do you by any chance have a [HideInInspector] attribute on those private variables?