I have been trying to find a clear answer to this question but I think I am not googling the right terms. So I am hoping a screenshot and explanation will help and someone can point me to the knowledge I need. I know this is in the area of custom inspectors/custom editors but that’s about all I can come up with and I am hoping there is a straighforward explanation of “here’s how to do this” rather than “here’s everything to know about custom editor scripts” because I don’t need to know everything just yet. ![]()
I have a script like:
[Header("Walking Speed")]
public float walkSpeed;
[Header("Running Speed")]
public float runSpeed;
Which looks like this in the Inspector:

which is alright but I would love to make it look like this, without changing the name of my variables. (Below is just a mockup I made)

This of course only being an example… in some cases the public variable might be called “maxDmgRad” and I would like the field to say “Default Maximum Damage Radius” or something like that.
Is there a simple way to do this that I am overlooking?