# invalidSampleIndex

> This constant defines a sample index that does not match any valid Profiler Sample.

## Definition

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

```csharp
public const int invalidSampleIndex = -1
```

### Remarks

If any Profiler API returns a sample index matching this value, no matching sample exists.
