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

var clipping : TextClipping

Description

What to do when the contents to be rendered is too large to fit within the area given.

JavaScript
// Prints how is managed the text when the contents rendered
// are too large to fir in the area given.

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

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
void OnGUI() {
if (GUI.skin.customStyles.Length > 0)
Debug.Log(GUI.skin.customStyles[0].clipping);

}
}

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def OnGUI():
if GUI.skin.customStyles.Length > 0:
Debug.Log(GUI.skin.customStyles[0].clipping)