Unity Notes

#On screen GUI buttons reference: http://docs.unity3d.com/Documentation/Components/gui-Basics.html /* Button Content examples */ // JavaScript var icon : Texture2D; function OnGUI () { if (GUI.Button (Rect (10,10, 100, 50), icon)) { print ("you clicked the icon"); } if (GUI.Button (Rect (10,70, 100, 20), "This is text")) { print ("you clicked the text button"); } } #Hide and unhide reference: http://answers.unity3d.com/questions/299138/how-to-hide-and-unhide-object.html function OnGUI () { if(GUI.Button(Rect(0,0,200,100), "Reset")) { var wall = GameObject.Find("wallJumpTall"); if(!...

May 16, 2013