# ProfilerCategoryInfo

> Category information descriptor structure.

## Definition

* **Type:** Struct
* **Namespace:** [UnityEditor.Profiling](/engine/6000.7/script-reference/unityeditor/profiling.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public struct ProfilerCategoryInfo
```

## Remarks

Contains the full information about a Profiler category such as its name, color, id, and flags. Use with [FrameDataView.GetAllCategories](/engine/6000.7/script-reference/unityeditor/profiling/framedataview/getallcategories.md) and [FrameDataView.GetCategoryInfo](/engine/6000.7/script-reference/unityeditor/profiling/framedataview/getcategoryinfo.md) to get information on the available Profiler categories.

## Examples

```csharp
using System;
using System.Collections.Generic;
using UnityEditor.Profiling;
using Unity.Profiling;

public class Example
{
    public static void GetAllBuiltinProfilerCategories(FrameDataView frameDataView, List<ProfilerCategoryInfo> unityProfilerCategories)
    {
        unityProfilerCategories.Clear();
        var infos = new List<ProfilerCategoryInfo>();
        frameDataView.GetAllCategories(infos);
        foreach (var info in infos)
        {
            if (info.flags.HasFlag(ProfilerCategoryFlags.Builtin))
            {
                unityProfilerCategories.Add(info);
            }
        }
    }
}
```

## Properties

| Property                                                                                     | Description                                                                                                 |
| -------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
| [color](/engine/6000.7/script-reference/unityeditor/profiling/profilercategoryinfo/color.md) | The color of the Profiler category, as a [Color32](/engine/6000.7/script-reference/unityengine/color32.md). |
| [flags](/engine/6000.7/script-reference/unityeditor/profiling/profilercategoryinfo/flags.md) | Flags for showing if the Category is user defined or built into Unity.                                      |
| [id](/engine/6000.7/script-reference/unityeditor/profiling/profilercategoryinfo/id.md)       | Id used by Unity for tracking the Category.                                                                 |
| [name](/engine/6000.7/script-reference/unityeditor/profiling/profilercategoryinfo/name.md)   | The name used by Unity for the Category.                                                                    |
