Can @HideInInspector be toggled on/off?

I asked this question yesterday, but I didn’t word it very well, so I thought I’d try again! :slight_smile:

Basically, I want to have a flag (boolean variable) show up in the inspector, and if selected, more options show up. If it’s not selected, those options are hidden.

I tried the following, but it doesn’t work.

var flag = false;
if (!flag)
    @HideInInspector 
var myVar = something;

I think I understood you :wink: I’ve answered in the original thread.