GUI

PowenKo, Unity Tutorial, GUI, BeginScrollView

January 1, 2012   ·   0 Comments

Screen Shot 2012-01-01 at 12.49.25 AM


sample code: b22_1_GUI_2

		Vector2  scrollViewVector= Vector2.zero;

	void OnGUI () {
		scrollViewVector = GUI.BeginScrollView (new Rect (325, 25, 100, 100), scrollViewVector,new  Rect (0, 0, 400, 400));

	// Put something inside the ScrollView
		
 	innerText = GUI.TextArea (new Rect (0, 0, 400, 400), "I am inside the ScrollView");

	// End the ScrollView
	GUI.EndScrollView();
}

		

reference: http://unity3d.com/support/documentation/Components/gui-Controls.html

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