- Home /
build file doesn't show image with GUI parts
I want to use image button with GUI api on javascript.
function OnGUI(){
if(GUI.Button(new Rect(10,10,100,100),Resources.LoadAssetAtPath("Assets/images/circle.png", Texture2D))){
//bra bra bra
}
}
All images are in directory "Assets/images". My code works well on game view when i clicked play button on Unity Editor
But, build file doesn't show any of images.
I built PC/Mac stand alone apps and Flash files, but all of them don't show images. These Application files look have no image inside.
Please tell me how to use image with GUI parts.
Here is the project file. https://dl.dropbox.com/u/281264/unity/GuiTest1.zip
Thank you.
gui_gameview.png
(103.3 kB)
guitest2.png
(20.8 kB)
Comment