GUIStyle.clipping 剪裁

var clipping : TextClipping

Description描述

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

当渲染的内容太大而不能匹配给定的区域内时,使用这个。

using UnityEngine;
using System.Collections;

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

	}
}
// 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);
}
Page last updated: 2011-1-23