ドキュメント

Unity Engine

Unity Engine

GetSampleCategoryIndex(int)

Gets Profiler marker category for the specific sample.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

public ushort GetSampleCategoryIndex(int sampleIndex)

Parameters

sampleIndex

Index of the Profiler sample.

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: