in unity C#, can I automatically assign a sprite with code so you don't have to assign it in the inspector?
16:47 12 Sep 2026

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.

unity-game-engine