文档

Unity Engine

Unity Engine

GetSampleMetadataAsSpan<T>(int, int)

Returns Span\<T\> representation of sample metadata.
阅读时间1 分钟最后更新于 1 个月前

Definition

public Span<T> GetSampleMetadataAsSpan<T>(int sampleIndex, int metadataIndex) where T : unmanaged

Parameters

sampleIndex

Index of the Profiler sample.

metadataIndex

Metadata index.

Returns

Type

Description

Span<T>Returns Span\<T\> of the metadata associated with the sample.

Remarks

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