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