# GroupScope

> Create a new GroupScope and begin the corresponding group.

## Definition

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

## GroupScope(Rect)

Create a new GroupScope and begin the corresponding group.

```csharp
public GroupScope(Rect position)
```

### Parameters

**** (\[Rect]\(/engine/6000.5/script-reference/unityengine/rect)): Rectangle on the screen to use for the group.

## GroupScope(Rect, string)

Create a new GroupScope and begin the corresponding group.

```csharp
public GroupScope(Rect position, string text)
```

### Parameters

**** (\[Rect]\(/engine/6000.5/script-reference/unityengine/rect)): Rectangle on the screen to use for the group.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Text to display on the group.

## GroupScope(Rect, Texture)

Create a new GroupScope and begin the corresponding group.

```csharp
public GroupScope(Rect position, Texture image)
```

### Parameters

**** (\[Rect]\(/engine/6000.5/script-reference/unityengine/rect)): Rectangle on the screen to use for the group.**** (\[Texture]\(/engine/6000.5/script-reference/unityengine/texture)): [Texture](/engine/6000.5/script-reference/unityengine/texture.md) to display on the group.

## GroupScope(Rect, GUIContent)

Create a new GroupScope and begin the corresponding group.

```csharp
public GroupScope(Rect position, GUIContent content)
```

### Parameters

**** (\[Rect]\(/engine/6000.5/script-reference/unityengine/rect)): Rectangle on the screen to use for the group.**** (\[GUIContent]\(/engine/6000.5/script-reference/unityengine/guicontent)): Text, image and tooltip for this group. If supplied, any mouse clicks are "captured" by the group and not If left out, no background is rendered, and mouse clicks are passed.

## GroupScope(Rect, GUIStyle)

Create a new GroupScope and begin the corresponding group.

```csharp
public GroupScope(Rect position, GUIStyle style)
```

### Parameters

**** (\[Rect]\(/engine/6000.5/script-reference/unityengine/rect)): Rectangle on the screen to use for the group.**** (\[GUIStyle]\(/engine/6000.5/script-reference/unityengine/guistyle)): The style to use for the background.

## GroupScope(Rect, string, GUIStyle)

Create a new GroupScope and begin the corresponding group.

```csharp
public GroupScope(Rect position, string text, GUIStyle style)
```

### Parameters

**** (\[Rect]\(/engine/6000.5/script-reference/unityengine/rect)): Rectangle on the screen to use for the group.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Text to display on the group.**** (\[GUIStyle]\(/engine/6000.5/script-reference/unityengine/guistyle)): The style to use for the background.

## GroupScope(Rect, Texture, GUIStyle)

Create a new GroupScope and begin the corresponding group.

```csharp
public GroupScope(Rect position, Texture image, GUIStyle style)
```

### Parameters

**** (\[Rect]\(/engine/6000.5/script-reference/unityengine/rect)): Rectangle on the screen to use for the group.**** (\[Texture]\(/engine/6000.5/script-reference/unityengine/texture)): [Texture](/engine/6000.5/script-reference/unityengine/texture.md) to display on the group.**** (\[GUIStyle]\(/engine/6000.5/script-reference/unityengine/guistyle)): The style to use for the background.
