Question by
matheusrls · Mar 05, 2016 at 04:01 PM ·
instantiateprefabbuttons
How to make multiple buttons
I want to make multiple buttons that all look the same but with different functions (like one opens a door, the other closes, etc). What would be the best way to make this considering I want to make about a thousand buttons and it would be very unproductive to put them all in the hierarchy as different game objects?
I tried making a prefab button, instantiating them all by code and changing their names and functions by code, but when I tried to change a single button name it changed the name of them all, since it was a prefab.
Comment