Hi,
Let say that I have Components A_Manager, A1,A2,A3… and so on.
All of them are inherited from MonoBehaviour.
But A1,A2,A3 do not run on their own, and are called from A_Manager.
In the Inspector,
instead of Having each Component shown individually,
Is it possible to have A1,A2,A3’s properties be grouped under A_Manager?
Jamora
2
The simplest way would be to have code like this in your custom editor for A_Manager, assuming all your A-classes have a shared type:
A[] aComponents;
void Awake(){ Reset(); }
void Reset(){
aComponents = gameObject.GetComponents<A>();
}
To hide the A-classes, just have
hideFlags = HideFlags.HideInInspector;
in its Reset method.