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