Version: 2020.3
public void Draw (Rect position, bool isHover, bool isActive, bool on, bool hasKeyboardFocus);

描述

将该 GUIStyle 绘制到屏幕上(内部版本)。

绘制没有文本也没有图像的普通 GUIStyle。


public void Draw (Rect position, string text, bool isHover, bool isActive, bool on, bool hasKeyboardFocus);

描述

绘制该 GUIStyle 时,在其内部填充一个文本字符串。


public void Draw (Rect position, Texture image, bool isHover, bool isActive, bool on, bool hasKeyboardFocus);

描述

绘制该 GUIStyle 时,在其内部填充一个图像。如果图像太大而无法放入样式的内容区域,则缩小图像。


public void Draw (Rect position, GUIContent content, int controlID);
public void Draw (Rect position, GUIContent content, int controlID, bool on);
public void Draw (Rect position, GUIContent content, bool isHover, bool isActive, bool on, bool hasKeyboardFocus);

描述

绘制该 GUIStyle 时,在其内部填充文本和图像。如果图像太大而无法放入样式的内容区域,则缩小图像。