Hey.so basically what i want to achieve is to change the entire sprite sheet during runtime.
E.g. Lets say i have a shop with golden armour outfit and leather outfit and if i buy golden armour my
Sprite sheets and animations changes to player_golden_outfit or something like that.sorry if you dont get it and sorry i cant upload a script its because im doing this from my phone
Assign the Sprite to the SpriteRenderer component and the relevant Animation Controller to the Animation component.
Edit:
public RuntimeAnimatorController rta;
public Sprite sprite;
void Start() {
SpriteRenderer sr = GetComponent<SpriteRenderer>();
sr.sprite = sprite;
Animator animator = GetComponent<Animator>();
animator.runtimeAnimatorController = rta;
}