load sprite from assets unity code example
Example: load an image sprite script unity
void Start()
{
spriteArray = Resources.LoadAll<Sprite>("BirdHeroSprite");
}
void Start()
{
spriteArray = Resources.LoadAll<Sprite>("BirdHeroSprite");
}