- Home /
Question by
Humb · May 04, 2012 at 01:19 PM ·
imageguitexture
problem showing image in GUITexture
The unityeditor shows image correctly but when i build and run in standalone editor the image appears badly. Kindly take a look at the attachments Loaded the image using following code:
var url = ("file://"+Application.dataPath+"/Images/facebook-logo-jpg.jpg");
icon = new Texture2D(16,16, TextureFormat.DXT1, false);
var www = WWW(url);
yield www;
www.LoadImageIntoTexture(icon);
loaded = true;
OnGUI()
if(loaded)
{
GUI.DrawTexture(Rect(20,80,256,256), icon, ScaleMode.ScaleToFit);
}
Comment
Answer by Stormizin · May 04, 2012 at 01:59 PM
Try to compile for Web Section or flash. Also try to change the texture options to Truecolor and few more options.
Your answer
Follow this Question
Related Questions
GUI dependent on an int variable 1 Answer
Pop up image triggered by box collider? 1 Answer
GuiTexture Blurred after Build for website 0 Answers
Reduce Draw call for Multiple GUI Textures with same Texture 1 Answer
image in the button 5 Answers