texture to image unity

C#
 Image pictureInScene; byte[] temp= File.ReadAllBytes ("pathTo/image.png"); Texture2D tempPic= new Texture2D (2, 2); fotillo.LoadImage (temp); pictureInScene.sprite = Sprite.Create (tempPic, new Rect (0, 0, 128, 128), new Vector2 ());//set the Rect with position and dimensions as you need
Source

Also in C#: