Version: 2021.3

RawFrameDataView.GetSampleMetadataAsFloat

切换到手册
public float GetSampleMetadataAsFloat (int sampleIndex, int metadataIndex);

参数

sampleIndex Index of the Profiler sample.
metadataIndex 元数据索引。

返回

float Returns float representation of sample metadata value.

描述

Gets sample metadata value as float.

Use to obtain additional data associated with the sample. metadataIndex must be between 0 and GetSampleMetadataCount.