# Draw

> Draw this GUIStyle on to the screen, internal version.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.IMGUIModule

## Draw(Rect, bool, bool, bool, bool)

Draw this GUIStyle on to the screen, internal version.

```csharp
public void Draw(Rect position, bool isHover, bool isActive, bool on, bool hasKeyboardFocus)
```

### Parameters

**** (\[Rect]\(/engine/6000.0/script-reference/unityengine/rect)): **** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): **** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): **** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): **** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)):&#x20;

### Remarks

Draw plain GUIStyle without text nor image.

## Draw(Rect, string, bool, bool, bool, bool)

Draw the GUIStyle with a text string inside.

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

### Parameters

**** (\[Rect]\(/engine/6000.0/script-reference/unityengine/rect)): **** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): **** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): **** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): **** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): **** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)):&#x20;

## Draw(Rect, Texture, bool, bool, bool, bool)

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.

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

### Parameters

**** (\[Rect]\(/engine/6000.0/script-reference/unityengine/rect)): **** (\[Texture]\(/engine/6000.0/script-reference/unityengine/texture)): **** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): **** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): **** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): **** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)):&#x20;

## Draw(Rect, GUIContent, bool, bool, bool, bool)

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.

```csharp
public void Draw(Rect position, GUIContent content, bool isHover, bool isActive, bool on, bool hasKeyboardFocus)
```

### Parameters

**** (\[Rect]\(/engine/6000.0/script-reference/unityengine/rect)): **** (\[GUIContent]\(/engine/6000.0/script-reference/unityengine/guicontent)): **** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): **** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): **** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): **** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)):&#x20;

## Draw(Rect, GUIContent, int)

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.

```csharp
public void Draw(Rect position, GUIContent content, int controlID)
```

### Parameters

**** (\[Rect]\(/engine/6000.0/script-reference/unityengine/rect)): **** (\[GUIContent]\(/engine/6000.0/script-reference/unityengine/guicontent)): **** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)):&#x20;

## Draw(Rect, GUIContent, int, bool)

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.

```csharp
public void Draw(Rect position, GUIContent content, int controlID, bool on)
```

### Parameters

**** (\[Rect]\(/engine/6000.0/script-reference/unityengine/rect)): **** (\[GUIContent]\(/engine/6000.0/script-reference/unityengine/guicontent)): **** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): **** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)):&#x20;

## Draw(Rect, GUIContent, int, bool, bool)

Draw this GUIStyle on to the screen, internal version.

```csharp
public void Draw(Rect position, GUIContent content, int controlID, bool on, bool hover)
```

### Parameters

**** (\[Rect]\(/engine/6000.0/script-reference/unityengine/rect)): **** (\[GUIContent]\(/engine/6000.0/script-reference/unityengine/guicontent)): **** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): **** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): **** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)):&#x20;

### Remarks

Draw plain GUIStyle without text nor image.
