GUIStyle.Draw 绘制

function Draw (position : Rect, isHover : bool, isActive : bool, on : bool, hasKeyboardFocus : bool) : void

Description描述

Draw plain GUIStyle without text nor image.

绘制不包含文本也不图像的普通GUIStyle。

• function Draw (position : Rect, text : string, isHover : bool, isActive : bool, on : bool, hasKeyboardFocus : bool) : void

Description描述

Draw the GUIStyle with a text string inside.

绘制带有文本字符串的GUIStyle。

• function Draw (position : Rect, image : Texture, isHover : bool, isActive : bool, on : bool, hasKeyboardFocus : bool) : void

Description描述

Draw the GUIStyle with an image inside. If the image is too large to fit within the content area of the style it is scaled down.

绘制带有一个图片的GUIStyle。如果图片太大而不能匹配该样式的内容区域里面,它会被缩小。

• function Draw (position : Rect, content : GUIContent, isHover : bool, isActive : bool, on : bool, hasKeyboardFocus : bool) : void

Description描述

Draw the GUIStyle with text and an image inside. If the image is too large to fit within the content area of the style it is scaled down.

绘制带有文本和图片的GUIStyle。如果图片太大而不能匹配该样式的内容区域里面,它会被缩小。

• function Draw (position : Rect, content : GUIContent, controlID : int, on : bool = false) : void

Description描述

The main draw function to use from GUI code.

主要使用GUI代码的绘制函数。

Page last updated: 2011-1-23