I need to make so lets say I have a boolean and an int
var checkMe : boolean;
var showMe : int = 0;
I need to make it so when i check the checkMe it shows the showMe in the inspetor. But if its not checked I cant edit it in the inspector.
I need to make so lets say I have a boolean and an int
var checkMe : boolean;
var showMe : int = 0;
I need to make it so when i check the checkMe it shows the showMe in the inspetor. But if its not checked I cant edit it in the inspector.
You can do this by creating a custom inspector for the component in question. (See the section of the docs titled ‘Extending the Editor’ for more info.)
There may be other ways to do it, but I can’t think of any at the moment.