# MipmapLimitDescriptor(bool, string)

> Creates a new MipmapLimitDescriptor.

## Definition

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

```csharp
public MipmapLimitDescriptor(bool useMipmapLimit, string groupName)
```

### Parameters

**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Enable or disable mipmap limit effects for a Texture.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The [TextureMipmapLimitGroup](/engine/6000.5/script-reference/unityengine/texturemipmaplimitgroups.md) to use the mipmap limit of.

### Remarks

Use a `MipmapLimitDescriptor` to determine whether a texture uses a mipmap limit when you create the texture using a constructor.

If you create a texture using a script, the texture doesn't use mipmap limits by default. The texture uses the mipmap limit of `groupName` if you set `useMipmapLimit` to `true`. If the group is not defined (either `null` or an empty string), the texture falls back to following the global mipmap limit.

The texture also uses the global mipmap limit if the group is not known by the Editor.

Additional Resources:: [TextureMipmapLimitGroups](/engine/6000.5/script-reference/unityengine/texturemipmaplimitgroups.md).
