Friday, July 31, 2015

Unity UI - Dynamic Buttons and Scroll View

When building a UI, it's sometimes helpful to be able to dynamically create buttons depending on a number of objects. Unity's UI is easy to work with, but can be tricky to use if you're trying to build it dynamically. In this tutorial, we'll create buttons for a list of names and add them to a scrollable window so that we can accommodate any number of buttons.