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