UnityEditor.EditorGUILayout.BeginVerticalScrollView C# (CSharp) Method

BeginVerticalScrollView() static private method

static private BeginVerticalScrollView ( Vector2 scrollPosition ) : Vector2
scrollPosition Vector2
return Vector2
        internal static Vector2 BeginVerticalScrollView(Vector2 scrollPosition, params GUILayoutOption[] options)
        {
            return BeginVerticalScrollView(scrollPosition, false, GUI.skin.verticalScrollbar, GUI.skin.scrollView, options);
        }

Same methods

EditorGUILayout::BeginVerticalScrollView ( Vector2 scrollPosition, bool alwaysShowVertical, GUIStyle verticalScrollbar, GUIStyle background ) : Vector2

Usage Example

 public override void OnInspectorGUI()
 {
     EditorGUI.BeginDisabledGroup(false);
     GUILayout.Label("Select platforms for plugin", EditorStyles.boldLabel, new GUILayoutOption[0]);
     EditorGUILayout.BeginVertical(GUI.skin.box, new GUILayoutOption[0]);
     this.ShowGeneralOptions();
     EditorGUILayout.EndVertical();
     GUILayout.Space(10f);
     if (this.IsEditingPlatformSettingsSupported())
     {
         this.ShowPlatformSettings();
     }
     EditorGUI.EndDisabledGroup();
     base.ApplyRevertGUI();
     if (base.targets.Length <= 1)
     {
         GUILayout.Label("Information", EditorStyles.boldLabel, new GUILayoutOption[0]);
         this.m_InformationScrollPosition = EditorGUILayout.BeginVerticalScrollView(this.m_InformationScrollPosition, new GUILayoutOption[0]);
         foreach (KeyValuePair <string, string> pair in this.m_PluginInformation)
         {
             GUILayout.BeginHorizontal(new GUILayoutOption[0]);
             GUILayoutOption[] options = new GUILayoutOption[] { GUILayout.Width(50f) };
             GUILayout.Label(pair.Key, options);
             GUILayout.TextField(pair.Value, new GUILayoutOption[0]);
             GUILayout.EndHorizontal();
         }
         EditorGUILayout.EndScrollView();
         GUILayout.FlexibleSpace();
         if (this.importer.isNativePlugin)
         {
             EditorGUILayout.HelpBox("Once a native plugin is loaded from script, it's never unloaded. If you deselect a native plugin and it's already loaded, please restart Unity.", MessageType.Warning);
         }
     }
 }
All Usage Examples Of UnityEditor.EditorGUILayout::BeginVerticalScrollView