This version of Unity is unsupported.

RawFrameDataView.GetSampleName

Declaration

public string GetSampleName(int sampleIndex);

Parameters

sampleIndex Index of the Profiler sample.

Returns

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

Description

Gets the name of the specific sample.

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