기술 자료

Unity Engine

Unity Engine

GetSampleName(int)

Gets the name of the specific sample.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

public string GetSampleName(int sampleIndex)

Parameters

sampleIndex

Index of the Profiler sample.

Returns

Type

Description

stringReturns sample name. Returns null if sample index is invalid.

Remarks

Note: GetSampleName allocates string when called. Use RawFrameDataView.GetSampleMarkerId to avaoid allocations for simple lookups.