So I started skinning my UI. There’s a good chance I’ll change it down the line, but I wanted to at least wrap my head around Unity’s UI system so I can plan ahead. I was hoping Unity had some sort of button grouping system, but so far as I can tell it doesn’t. (For all I know it does, and I just didn’t know what words to search for, but anyways…)
I created a small script that lets you set a selected colour to a button. Then using the OnClick in the inspector I can tell each button to set itself to selected and the rest of the related buttons to unselected. It’s still a bit tedious, but it gets the job done.
I can also use a MultiActor track group in Cinema Director to set the default selected buttons to selected state in the opening of the scene.
So here’s my progress. Forgive my terrible dialog. And timing. And the UI is still unfinished. http://www.johnalatouf.com/testing/Intro2.html