Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetMarkerCategoryIndex(int)

Gets Profiler marker category for the specific marker identifier.
Read time 1 minuteLast updated 10 days ago

Definition

public ushort GetMarkerCategoryIndex(int markerId)

Parameters

markerId

Marker identifier.

Returns

Type

Description

ushortReturns 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.