GUIStyle.Draw Manual     Reference     Scripting  
Scripting > Runtime Classes > GUIStyle
GUIStyle.Draw

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

Description

Draw plain GUIStyle without text nor image.

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

Description

Draw the GUIStyle with a text string inside.

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.

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.

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

Description

The main draw function to use from GUI code.