# HasGroup(string)

> Checks whether a texture mipmap limit group with the indicated groupName exists in the project. This operation fails and throws an exception if groupName is null.

## Definition

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

```csharp
public static bool HasGroup(string groupName)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Name of the texture mipmap limit group to verify.

### Returns

| Type                                                          | Description                                                                                                                       |
| ------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Returns `true` if a texture mipmap limit group named `groupName` exists in the project. If that is not the case, returns `false`. |

### Remarks

```csharp
using UnityEngine;

public class Example : MonoBehaviour
{
    // Checks if the texture mipmap limit group "MyGroup" exists in the project and prints a message to the Unity Console.
    void Start()
    {
        const string textureMipmapLimitGroupName = "MyGroup";
        bool myGroupExists = TextureMipmapLimitGroups.HasGroup(textureMipmapLimitGroupName);
        Debug.Log($"Texture mipmap limit group '{textureMipmapLimitGroupName}' {(myGroupExists ? "exists" : "does not exist")} in this project.");
    }
}
```

Additional Resources: [TextureMipmapLimitGroups.CreateGroup](/engine/6000.3/script-reference/unityengine/texturemipmaplimitgroups/creategroup.md), [TextureMipmapLimitGroups.RemoveGroup](/engine/6000.3/script-reference/unityengine/texturemipmaplimitgroups/removegroup.md).
