- Home /
Question by
oTaijjo · Nov 02, 2019 at 05:19 PM ·
layermaskcustom inspectoreditor scripting
Inspector exposed list of named bools generated by code.
I got three kinds of entities: Manager, Clients, and Levels.
- Levels are basically a list of named bools.
- The Manager exposes this list in the inspector like Unity already does with LayerMasks, so the user can activate certain Levels, all, or none of them via the Manager Inspector.
- Clients can be any other class in the app. They call methods on Manager and pass along a certain Level. Depending on the Level, Manager will do different things.
Here comes the hard part: I want the Clients to define which levels exist, but I want to decide which of them are enabled via the Manager. I'm not afraid to write custom inspectors, but would appreciate some pointers on what classes and structures I could use to realize this. Thanks!
Comment