GetSampleName(int)
Gets the name of the specific sample.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEditor.Profiling
- Assembly: UnityEditor.CoreModule
public string GetSampleName(int sampleIndex)
Parameters
Index of the Profiler sample.
Returns
Type | Description |
|---|---|
| string | Returns 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.