Just by playing around I wanted to change the color of my button instead of using a sprite.
Not because I was lazy…
So in my button ui script:
public void SetActiveUI()
{
button.image.color = new Color32(243, 97, 97, 255);
}
public void ResetActiveUI()
{
button.image.color = new Color32(0, 0, 0, 255);
}
And I would use these in my UnitActionSystemUI to toggle which one’s active.
It was neat to learn about Color() and Color32() and how you can use these;