UnityEngine.GUILayout.BeginScrollView(UnityEngine.Vector2, UnityEngine.GUIStyle)

Here are the examples of the csharp api UnityEngine.GUILayout.BeginScrollView(UnityEngine.Vector2, UnityEngine.GUIStyle) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

19 View Source File : BackendSelectWindow.cs
License : MIT License
Project Creator : seldomU

void OnGUI()
		{
			if ( backendTypes == null || OnSelectBackend == null )
			{
				Log.Message( "BackendSelectWindow missing argument" );
				Close();
			}

			if ( backendIcons == null )
			{
				backendIcons = backendTypes
					.Select( t => new { type = t, icon = LoadIcon( t ) } )
					//.Where( tuple => tuple.icon != null )
					.ToDictionary( tuple => tuple.type, tuple => tuple.icon );
			}

			GUILayout.BeginHorizontal( scrollBoxStyle );
			GUILayout.Label("Select graph type", headerStyle);
			GUILayout.EndHorizontal();

			// a scrollview with one row for each backend type
			scrollPos = GUILayout.BeginScrollView( scrollPos, scrollBoxStyle );
			{
				foreach ( var t in backendTypes )
				{
					GUILayout.BeginHorizontal();
					{
						DrawTypeRow( t );
					}
					GUILayout.EndHorizontal();
				}
			}
			GUILayout.EndScrollView();
		}