I am making a football game, where u can select your favourite team. What I gotta do is change the player’s images based on the team selected. For example, I chose “Argentina”, then the players’s images will be Argentina jersey images.
I animate the players by frames, Texture2D frames and I have 48 frames for 1 jersey colour. I have 32 teams to choose from.
How do I change the textures efficiently without affecting (much) the game’s performance?
Is there a way to change the arrays of material based on the name of the image?