Version: 2022.2

FrameDataView.GetFrameMetaDataCount

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

参数

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

返回

int Returns count of metadata chunks.

描述

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

Use the GetSessionMetaDataCount method to retrieve the total number of metadata arrays available in this session.

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