GUI

PowenKo, Unity Tutorial, GUI, Toggle

January 1, 2012   ·   0 Comments

Screen Shot 2012-01-01 at 12.10.49 AM


sample code: b22_GUI

void OnGUI () {
bool toggleBool = true;

		toggleBool = GUI.Toggle (new Rect (125, 125, 100, 30), toggleBool, "Toggle 1");
		bool toggleBool2 = GUI.Toggle (new Rect (125, 145, 100, 30), false, "Toggle 2");

}

shareShare on FacebookShare on Google+Share on LinkedInEmail this to someonePrint this pageBuffer this pageDigg thisFlattr the authorShare on RedditPin on PinterestShare on StumbleUponShare on TumblrTweet about this on Twitter

By


Readers Comments (0)


You must be logged in to post a comment.

PowenKo’s Online Store

powenko_arduinoBook
Unity3D4

Amazon

adsbygoogle

Recent Posts

Categories

Amazon