# AreaScope

> Create a new AreaScope and begin the corresponding Area.

## Definition

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

## AreaScope(Rect)

Create a new AreaScope and begin the corresponding Area.

```csharp
public AreaScope(Rect screenRect)
```

### Parameters

**** (\[Rect]\(/engine/6000.6/script-reference/unityengine/rect)):&#x20;

## AreaScope(Rect, string)

Create a new AreaScope and begin the corresponding Area.

```csharp
public AreaScope(Rect screenRect, string text)
```

### Parameters

**** (\[Rect]\(/engine/6000.6/script-reference/unityengine/rect)): **** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Optional text to display in the area.

## AreaScope(Rect, Texture)

Create a new AreaScope and begin the corresponding Area.

```csharp
public AreaScope(Rect screenRect, Texture image)
```

### Parameters

**** (\[Rect]\(/engine/6000.6/script-reference/unityengine/rect)): **** (\[Texture]\(/engine/6000.6/script-reference/unityengine/texture)): Optional texture to display in the area.

## AreaScope(Rect, GUIContent)

Create a new AreaScope and begin the corresponding Area.

```csharp
public AreaScope(Rect screenRect, GUIContent content)
```

### Parameters

**** (\[Rect]\(/engine/6000.6/script-reference/unityengine/rect)): **** (\[GUIContent]\(/engine/6000.6/script-reference/unityengine/guicontent)): Optional text, image and tooltip top display for this area.

## AreaScope(Rect, string, GUIStyle)

Create a new AreaScope and begin the corresponding Area.

```csharp
public AreaScope(Rect screenRect, string text, GUIStyle style)
```

### Parameters

**** (\[Rect]\(/engine/6000.6/script-reference/unityengine/rect)): **** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Optional text to display in the area.**** (\[GUIStyle]\(/engine/6000.6/script-reference/unityengine/guistyle)): The style to use. If left out, the empty [GUIStyle](/engine/6000.6/script-reference/unityengine/guistyle.md) ([GUIStyle.none](/engine/6000.6/script-reference/unityengine/guistyle/none.md)) is used, giving a transparent background.

## AreaScope(Rect, Texture, GUIStyle)

Create a new AreaScope and begin the corresponding Area.

```csharp
public AreaScope(Rect screenRect, Texture image, GUIStyle style)
```

### Parameters

**** (\[Rect]\(/engine/6000.6/script-reference/unityengine/rect)): **** (\[Texture]\(/engine/6000.6/script-reference/unityengine/texture)): Optional texture to display in the area.**** (\[GUIStyle]\(/engine/6000.6/script-reference/unityengine/guistyle)): The style to use. If left out, the empty [GUIStyle](/engine/6000.6/script-reference/unityengine/guistyle.md) ([GUIStyle.none](/engine/6000.6/script-reference/unityengine/guistyle/none.md)) is used, giving a transparent background.

## AreaScope(Rect, GUIContent, GUIStyle)

Create a new AreaScope and begin the corresponding Area.

```csharp
public AreaScope(Rect screenRect, GUIContent content, GUIStyle style)
```

### Parameters

**** (\[Rect]\(/engine/6000.6/script-reference/unityengine/rect)): **** (\[GUIContent]\(/engine/6000.6/script-reference/unityengine/guicontent)): Optional text, image and tooltip top display for this area.**** (\[GUIStyle]\(/engine/6000.6/script-reference/unityengine/guistyle)): The style to use. If left out, the empty [GUIStyle](/engine/6000.6/script-reference/unityengine/guistyle.md) ([GUIStyle.none](/engine/6000.6/script-reference/unityengine/guistyle/none.md)) is used, giving a transparent background.
