- Home /
Button Texture not showing up in build
Hi all, I am trying to use a texture on a button. In the unity game view it shows up however when I export to a web build it dose not. I used a png as well as a tga file. Here is the code I am using:
Header:
var upArrow : Texture2D;
In the GUI function:
if(GUI.Button(Rect(GUIScaleFactor+1, 2, GUIScaleFactor, GUIScaleFactor), upArrow)) {
GameObject.Find("target").GetComponent("reposistion").moveUp(moveSpeed, transform.rotation.y);
}
Thanks
Comment
Bump, I have the same problem, however, on my labtop, this does not happen. I tried cleaning the project completly, and importing all the assets again, but still the same, in the editor, it works fine, but in the build it does not work.
I am guessing that this is a bug of some sort, I tried to add the material on a cube, and there it works normally, but in GUI it does not? Strange problem.
Your answer