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