Version: 2020.2

FrameDataView.GetFrameMetaDataCount

切换到手册
public int GetFrameMetaDataCount (Guid id, int tag);

参数

id 项目或包标识符。
tag 数据流索引。

返回

int Returns count of metadata chunks.

描述

获取帧中每个 ID标签 对的元数据块总数。

Use the GetFrameMetaDataCount method to retrieve the total number of metadata arrays available in this frame.

When there are multiple Profiler.EmitFrameMetaData calls in the same frame, it results in multiple metadata arrays that are associated with the frame for a given id, tag pair. This information can be used to write data to the stream in small portions, which reduces the amount of memory needed to hold generated data.

使用 ID 标识来自项目或包的元数据。
使用 tag 区分不同数据流。

另请参阅:GetFrameMetaDataProfiler.EmitFrameMetaData