madsbangh / EasyButtons

Add buttons to your inspector in Unity super easily with this simple attribute
MIT License
1.08k stars 83 forks source link

Support for adding space between buttons #9

Closed trulyspinach closed 5 years ago

trulyspinach commented 5 years ago

Add space between button with ButtonSpacing

8

madsbangh commented 5 years ago

Thank you so much, @trulyspinach ! This is much appreciated :)

This seems good to me all around. I would just ask two little things before I can merge:

  1. Remove using UnityEngine.UI; in ButtonAttribute.cs as the namespace is not used.
  2. In ButtonsExample.cs: Rename the last button from "Say Hello Space" to "Another Button" (or similar) as it is not responsible for adding the spacing. The comment describes its purpose very well already.

Cheers!

trulyspinach commented 5 years ago

Sorry about that, I didn't realized that! Just commit a fixed version.