GUIStyle.fixedHeight Manual     Reference     Scripting  
Scripting > Runtime Classes > GUIStyle
GUIStyle.fixedHeight

var fixedHeight : float

Description

If non-0, any GUI elements rendered with this style will have the height specified here.

JavaScript
// Prints the value of fixedHeight of customStyles[0]

function OnGUI() {
if(GUI.skin.customStyles.Length > 0)
Debug.Log(GUI.skin.customStyles[0].fixedHeight);
}