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