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