Not sure if this would be better here or in the UI section so I just flipped a coin LOL. I have a sprite renderer (on characters) sprite that I would like to use as a button’s image sprite (this would be for a party selection menu). I need this to be done programmatically as the button will be in a menu and the characters would be different during different parts of the game. I think I may be accessing/setting the images in the wrong way. I can set the image in the mock up by dragging and dropping easily enough.
This is what I want…
to be used here.
This is how I have attempted to do it.
I am aiming for this way to hopefully keep the color change.
GetAvailableMemberSpriteImages() is a serializedfield if that makes any sense.
Any advice or am I going to have to find another way to accomplish this?