in unity C#, can I automatically assign a sprite with code so you don't have to assign it in the inspector?
I'm writing a script and I can't manually assign it in the inspector because the Gameobject gets created in middle of the game, so I need a way to assign a Sprite with code.