Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetItemCategoryIndex(int)

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

Definition

public ushort GetItemCategoryIndex(int id)

Parameters

id

Hierarchy item identifier.

Returns

Type

Description

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