# ProfilerCategory

> Use to construct ProfilerCategory by category name.

## Definition

* **Type:** Constructor
* **Namespace:** [Unity.Profiling](/engine/6000.0/script-reference/unity/profiling.md)
* **Assembly:** UnityEngine.CoreModule

## ProfilerCategory(string)

Use to construct ProfilerCategory by category name.

```csharp
public ProfilerCategory(string categoryName)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Profiler category name.

### Remarks

This constructor performs a lookup across built-in Profiler categories and stores the category identifier. If the category does not exist, then it uses [ProfilerCategory.Scripts](/engine/6000.0/script-reference/unity/profiling/profilercategory/scripts.md) instead.

## ProfilerCategory(string, ProfilerCategoryColor)

Use to construct ProfilerCategory by category name.

```csharp
public ProfilerCategory(string categoryName, ProfilerCategoryColor color)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Profiler category name.**** (\[ProfilerCategoryColor]\(/engine/6000.0/script-reference/unity/profiling/profilercategorycolor)):&#x20;

### Remarks

This constructor performs a lookup across built-in Profiler categories and stores the category identifier. If the category does not exist, then it uses [ProfilerCategory.Scripts](/engine/6000.0/script-reference/unity/profiling/profilercategory/scripts.md) instead.
