基本方法:
public static bool Button(Rect position, GUIContent content); public static bool Button(Rect position, string text); public static bool Button(Rect position, Texture image); public static bool Button(Rect position, GUIContent content, GUIStyle style); public static bool Button(Rect position, string text, GUIStyle style); public static bool Button(Rect position, Texture image, GUIStyle style);
使用示例:
1.
public static bool Button(Rect position, string text);
1 void OnGUI(){