GUIStyle
- active
- alignment
- border
- CalcHeight
- CalcMinMaxWidth
- CalcScreenSize
- CalcSize
- clipping
- contentOffset
- DrawCursor
- DrawWithTextSelection
- Draw
- fixedHeight
- fixedWidth
- focused
- fontSize
- fontStyle
- font
- GetCursorPixelPosition
- GetCursorStringIndex
- GUIStyle
- hover
- imagePosition
- lineHeight
- margin
- name
- none
- normal
- onActive
- onFocused
- onHover
- onNormal
- operator GUIStyle
- overflow
- padding
- stretchHeight
- stretchWidth
- wordWrap
GUIStyle.none 空
static var none : GUIStyle
Description描述
Shortcut for an empty GUIStyle.
空GUIStyle的简码。
This style contains no decoration and just renders everything in the default font.
using UnityEngine;
using System.Collections;
public class example : MonoBehaviour {
void OnGUI() {
GUI.Button(new Rect(0, 0, 250, 100), "I'm very bare", GUIStyle.none);
}
}
function OnGUI () {
// Make a button with no decoration
//使按钮不带有任何装饰,也就是不应用样式
GUI.Button(Rect(0,0,250,100), "I'm very bare", GUIStyle.none);
}
最后修改:2011年1月24日 Monday 0:24