GUILayout.BeginVerticalstatic function BeginVertical (params options : GUILayoutOption[]) : voidstatic function BeginVertical (style : GUIStyle, params options : GUILayoutOption[]) : voidstatic function BeginVertical (text : String, style : GUIStyle, params options : GUILayoutOption[]) : voidstatic function BeginVertical (image : Texture, style : GUIStyle, params options : GUILayoutOption[]) : voidstatic function BeginVertical (content : GUIContent, style : GUIStyle, params options : GUILayoutOption[]) : voidParameters
DescriptionBegin a vertical control group. All controls rendered inside this element will be placed vertically below each other. The group must be closed with a call to EndVertical.
JavaScripts
function OnGUI () {
// Starts a vertical group GUILayout.BeginVertical ("box"); GUILayout.Button ("I'm the top button"); GUILayout.Button ("I'm the bottom button"); GUILayout.EndVertical(); } using UnityEngine;
using System.Collections; public class example : MonoBehaviour { void OnGUI() { GUILayout.BeginVertical("box"); GUILayout.Button("I'm the top button"); GUILayout.Button("I'm the bottom button"); GUILayout.EndVertical(); } } import UnityEngine
import System.Collections class example(MonoBehaviour): def OnGUI(): GUILayout.BeginVertical('box') GUILayout.Button('I\'m the top button') GUILayout.Button('I\'m the bottom button') GUILayout.EndVertical()
|

