r/Unity3D•
bird-boxer

How can I put child class variables under a header in the parent class?

Question

I have a Weapon class and then a few child classes like MeleeWeapon and Gun but the inspector for all the variables is a bit messy. Is there any way to add variables from my child class to the header of the parent? Preferably without messing with custom editors..?

Posted Jan 1, 2025, 6:43 AM UTC

09
Loading comments…