How can I right-justify (align) a custom editor label?

I’ve got a custom editor and I’d like to change the variable labels to right-justified, so they are closer to the value boxes and look neater.

I’ve briefly looked at GUILayout, but it doesn’t seem to have any function to change the justification/alignment of the label… Anyone have any ideas?

Thanks!

Use a GUISkin to set any settings easily for labels.

There’s an alignment option for any combination of upper, middle, lower and left, middle, right.