DropShadowLabel

示例程序
说明绘制有阴影效果的标签

用法

public static void DropShadowLabel(Rect position, string text);

public static void DropShadowLabel(Rect position, GUIContent content);

public static void DropShadowLabel(Rect position, string text, GUIStyle style);

public static void DropShadowLabel(Rect position, GUIContent content, GUIStyle style);

参数

position

绘制标签的矩形区域。

text/content

标签内容。

style

(可选)由 GUIStyle 类型定义的 GUI 样式。

示例

void OnGUI () {
		EditorGUI.LabelField (new Rect (5, 5, 200, 17), "This is a common label.");
		EditorGUI.DropShadowLabel (new Rect (5, 27, 200, 17), "This is a label with drop shadow.");
}