Real time sprite swap in game

How do I swap sprites on a character during gameplay to change character look via trigger?

create a animation sprite machine

if certain thing then activate this flipbook or sprite
else certain thing then activate other flipbook or sprite

there are some really good tutorials for this on youtube

there are also some plugins that could help.