I don’t fully understand writing custom inspectors, all I have done is copied one from somewhere to get some foldout groups, but now my class has become rather complex and I think the best way to handle this may be something similar to how the particle system has those toggleable modules. I am open to other organization solutions though.
So my situation is that I have a controller class for entities that move around, things like the player in 2d platforming game, but it is state based, hold many variables for customization, and may be initialized with or without states. States hold functionality for things like ground movement, jumping, and wall sliding or jumping. I would like to be able to have the inspector display this by having some variables greyed out or just not visible if a state is not included ore even if a variable meets criteria. For example if the jump state is not added then the entity can not jump so the jumping related variables like jump power should not be there.
As of now it is just a big list of variables and not the most comprehensive since some variables also enable the use of other variables. I don’t know if this is getting too complicated but any advice and help into solving this would be appreciated.