GetMarkerCategoryIndex(int)
Gets Profiler marker category for the specific marker identifier.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Method
- Namespace: UnityEditor.Profiling
- Assembly: UnityEditor.CoreModule
public ushort GetMarkerCategoryIndex(int markerId)
Parameters
Marker identifier.
Returns
Type | Description |
|---|---|
| ushort | Returns Profiler category index. |
Remarks
Use to filter samples data by a specific Profiler category.
The category index is represented by ushort value and refers to one of the following constants in ProfilerUnsafeUtility class:
Throws:
System.ArgumentException if markerId is invalid.
Additional Resources: FrameDataView.GetMarkerId, ProfilerUnsafeUtility.