# flags

> Marker flags.

## Definition

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

```csharp
public MarkerFlags flags
```

### Remarks

Use to determine marker origin and verbosity level.

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

public class Example
{
    public static void GetAllWarningMarkers(FrameDataView frameData, List<int> warningMarkerIds)
    {
        warningMarkerIds.Clear();
        var markers = new List<FrameDataView.MarkerInfo>();
        frameData.GetMarkers(markers);
        foreach (var marker in markers)
        {
            if (marker.flags.HasFlag(MarkerFlags.Warning))
                warningMarkerIds.Add(marker.id);
        }
    }
}
```

Additional Resources: [MarkerFlags](/engine/6000.7/script-reference/unity/profiling/lowlevel/markerflags.md).
