GetSampleCategoryIndex(int)
Gets Profiler marker category for the specific sample.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Method
- Namespace: UnityEditor.Profiling
- Assembly: UnityEditor.CoreModule
public ushort GetSampleCategoryIndex(int sampleIndex)
Parameters
Index of the Profiler sample.
Returns
Type | Description |
|---|---|
| ushort | Returns Profiler category index. |
Remarks
Use Profiler category to filter samples produced by a specific subsystem, e.g. Rendering, Audio.
The category index is represented by ushort value and refers to one of the following constants in ProfilerUnsafeUtility class:
-
CategoryLightning,
Additional Resources: FrameDataView.GetMarkerId, ProfilerUnsafeUtility.