I have three images displayed in my game and my player needs to choose between them (it’s a character-selection type of thing). I’ve built UI buttons for each and they are positioned correctly to be used when testing in the editor, but because they are parented to the Canvas, they shift position and are out of place when I build the game.
I’ve tried moving the button to parent it to the same empty game object as the sprite in the scene itself, but then the button just disappears and can’t be seen at all in either the editor or the game (although it is in the hierarchy still).
Is there a way to force the link to the gameobject/sprites instead? Or is my only option to build a button without the built-in UI system, just with coding?