GUILayout.VerticalScrollbarstatic function VerticalScrollbar (value : float, size : float, topValue : float, bottomValue : float, params options : GUILayoutOption[]) : floatstatic function VerticalScrollbar (value : float, size : float, topValue : float, bottomValue : float, style : GUIStyle, params options : GUILayoutOption[]) : floatParameters
Returnsfloat - the modified value. This can be changed by the user by dragging the scrollbar, or clicking the arrows at the end. DescriptionMake a vertical scrollbar. Scrollbars are what you use to scroll through a document. Most likely, you want to use scrollViews instead.
JavaScripts
var vSbarValue : float;
function OnGUI () { vSbarValue = GUILayout.VerticalScrollbar(vSbarValue, 1.0, 10.0, 0.0); } using UnityEngine;
using System.Collections; public class example : MonoBehaviour { public float vSbarValue; void OnGUI() { vSbarValue = GUILayout.VerticalScrollbar(vSbarValue, 1.0F, 10.0F, 0.0F); } } import UnityEngine
import System.Collections class example(MonoBehaviour): public vSbarValue as single def OnGUI(): vSbarValue = GUILayout.VerticalScrollbar(vSbarValue, 1.0F, 10.0F, 0.0F)
Finding extra elements:
|

