GUIStyle.Draw

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

Description

Draw plain GUIStyle without text nor image.

function Draw (position : Rect, text : String, isHover : boolean, isActive : boolean, on : boolean, hasKeyboardFocus : boolean) : void

Description

Draw the GUIStyle with a text string inside.

function Draw (position : Rect, image : Texture, isHover : boolean, isActive : boolean, on : boolean, hasKeyboardFocus : boolean) : 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 : boolean, isActive : boolean, on : boolean, hasKeyboardFocus : boolean) : 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 : boolean = false) : void

Description