Version: 2021.3

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

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961