- Home /
Possible Bug in Unity 4.0.0f7 ? GUISkinn selection Need Help!
Hi. I need help in a possible bug to select a GUISkin file for a custom button in Unity 4.0.0f7.
Here's step by step my problem, sory for any Typo i from Brazil and my English is not good.
1 - First I created a empty project and a empty script file. 2 - I created a GUISkin File and setup some properties (the problem is also happening when the file are empty). 3 - Created a js script to hold the VAR and create the button (Code below).
pragma strict
ar gskinTest : GUISkin;
function OnGUI() { GUI.skin = gskinTest; GUI.Button( Rect(30,50,100,200), "Test Button!"); }
4 - put the script in Main Camera 5 - When i try to select the GUISkin file from script menu on main camera, no GUISkin files are show in the browser window
Attached in this Question are 6 screenshots from all steps
Please I need it to work to accomplish a training course.
Best Regards and a happy new year. link text
Answer by Eric5h5 · Jan 02, 2013 at 07:55 PM
It does seem to be a bug, however you don't actually need to use the asset window, you can just drag the GUISkin from the project pane onto the public variable slot.
Your answer
Follow this Question
Related Questions
Changing build settings bug 0 Answers
Can someone help me fix my Javascript for Flickering Light? 6 Answers
Script not working in Unity 4 2 Answers
GUISkin Problem 1 Answer