how to convert sprite to texture2d unity code example Example: texture2d to sprite Sprite.Create(texture, rect, pivot);