I am developing a progression system game in Unity3D and in a scene I have multiple GameObjects that have the UI button component. I am trying to find a way to store reference to all of these UI button components in one class and than access those buttons from other classes. I have thought about setting up a class with public Button variables and than adding this class as a component to GameObject however this does not feel optimum. Is there a way to create a reference to multiple UI buttons from once class and than access the referenced variables from other classes?
Summary can be seen below
- scene in unity 3D with multiple UI buttons
- trying to find a way store UI buttons in one class
- access UI buttons from other classes that have been instantiated in scene