| |

How to show private variables in the Inspector

Click the 3 dot menu in the upper-right corner of any GameObject in the Inspector and click Debug:

Afterwards you can see a lot more information about your scripts, including private variables:
 

Alternately, if you have the amazing NaughtyAttributes package in your project, you can use [ShowNonSerializedField] attribute:

[ShowNonSerializedField]
private float myHiddenVariable = 1f;

Similar Posts

Leave a Reply