Answers for "texture to image unity"

C#
0

texture to image unity

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
Posted by: Guest on May-18-2020

Code answers related to "texture to image unity"

C# Answers by Framework

Browse Popular Code Answers by Language