Question by 
               Ziplock9000 · May 19, 2017 at 05:53 AM · 
                buttonspriteimage  
              
 
              Programmatically creating buttons with images that can be one of dozens.
All the usual methods I've seen for creating buttons and assigning them an image revolve around creating a prefab and having a public variable to a sprite that is a handle to an image you want to assign to it.
In my situation I have dozens of different images I want to assign so I can't have dozens of public sprite variables in my script.
I could load from resources, but I lose the sprite packing / atlasing ability if they are put there.
Help please.
               Comment
              
 
               
              Your answer
 
 
             Follow this Question
Related Questions
Button Sprite Stretching 0 Answers
How to resize an image, without affecting the size of the button? 0 Answers
Change Sprite according to user choice 0 Answers
Glowing 2D items 0 Answers
Trying to replace a sprite in UI Image 0 Answers
 koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                