# GetMarkerFlags(int)

> Gets Profiler marker flags for the specific marker identifier.

## Definition

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

```csharp
public MarkerFlags GetMarkerFlags(int markerId)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Marker identifier.

### Returns

| Type                                                                                   | Description                    |
| -------------------------------------------------------------------------------------- | ------------------------------ |
| [MarkerFlags](/engine/6000.0/script-reference/unity/profiling/lowlevel/markerflags.md) | Returns Profiler marker flags. |

### Remarks

**Throws:**

*System.ArgumentException* if *markerId* is invalid.

Additional Resources: [FrameDataView.GetMarkerId](/engine/6000.0/script-reference/unityeditor/profiling/framedataview/getmarkerid.md), [MarkerFlags](/engine/6000.0/script-reference/unity/profiling/lowlevel/markerflags.md).
