# GetSampleFlags(int)

> Gets Profiler marker flags for the specific sample.

## Definition

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

```csharp
public MarkerFlags GetSampleFlags(int sampleIndex)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Index of the Profiler sample.

### Returns

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

### Remarks

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