Version: 2021.1
언어: 한국어

AsyncReadManagerMetricsFiltersConstructor

매뉴얼로 전환
public AsyncReadManagerMetricsFilters ();
public AsyncReadManagerMetricsFilters (ulong typeID);
public AsyncReadManagerMetricsFilters (Unity.IO.LowLevel.Unsafe.ProcessingState state);
public AsyncReadManagerMetricsFilters (Unity.IO.LowLevel.Unsafe.FileReadType readType);
public AsyncReadManagerMetricsFilters (Unity.IO.LowLevel.Unsafe.Priority priorityLevel);
public AsyncReadManagerMetricsFilters (Unity.IO.LowLevel.Unsafe.AssetLoadingSubsystem subsystem);

파라미터

typeID The YAML Class ID for the asset type to include in the summary calculations. See the YAML Class ID Reference page.
state The Processing State to include in the summary calculations.
readType The type of file read (async or sync) to include in the summary calculations.
priorityLevel The priority level to include in the summary calculations.
subsystem The Subsystem 'tag' to include in the summary calculations.

설명

Constructor for an instance of the Summary Metrics Filters, used to filter the metrics data that is included in the calculation of a summary.

The constructor takes one value of a filter. To take multiple values for the same filter, you can use the array constructor (below). For multiple filters, use the Set method for additional required filter types.

using Unity.IO.LowLevel.Unsafe;
using UnityEngine;

public class GetMetricsSummary : MonoBehaviour { #if ENABLE_PROFILER && UNITY_2020_2_OR_NEWER public void Start() { // Create a filter for texture file reads that have been completed AsyncReadManagerMetricsFilters m_TextureFilter = new AsyncReadManagerMetricsFilters(AssetLoadingSubsystem.Texture); m_TextureFilter.SetStateFilter(ProcessingState.Completed); }

#endif }

public AsyncReadManagerMetricsFilters (ulong[] typeIDs, ProcessingState[] states, FileReadType[] readTypes, Priority[] priorityLevels, AssetLoadingSubsystem[] subsystems);
public AsyncReadManagerMetricsFilters (ulong[] typeIDs);
public AsyncReadManagerMetricsFilters (ProcessingState[] states);
public AsyncReadManagerMetricsFilters (FileReadType[] readTypes);
public AsyncReadManagerMetricsFilters (Priority[] priorityLevels);
public AsyncReadManagerMetricsFilters (AssetLoadingSubsystem[] subsystems);

파라미터

typeIDs An array of all the TypeIDs to include in the summary calculations.
states An array of all the ProcessingStates to include in the summary calculations.
readTypes An array of all the FileReadTypes to include in the summary calculations. As there are only two options, this is generally unnecesary.
priorityLevels An array of all the Priority levels to include in the summary calculations. As there are only two options, this is generally unnecesary.
subsystems An array of all the Subsystem 'tags' to include in the summary calculations.

설명

Constructor for an instance of the Summary Metrics Filters, used to filter the metrics data that is included in the calculation of a summary.

The constructor takes an array of values for a single filter, or for all of the filters. For multiple filters, but not all, use the Set method for additional required filter types.

using Unity.IO.LowLevel.Unsafe;
using UnityEngine;

public class GetMetricsSummary : MonoBehaviour { #if ENABLE_PROFILER && UNITY_2020_2_OR_NEWER public void Start() { // Create a filter for mesh and texture file reads that have been completed or failed AssetLoadingSubsystem[] assetLoadingSubsystems = new AssetLoadingSubsystem[] {AssetLoadingSubsystem.Texture, AssetLoadingSubsystem.Mesh}; AsyncReadManagerMetricsFilters m_SummaryFilter = new AsyncReadManagerMetricsFilters(assetLoadingSubsystems); m_SummaryFilter.SetStateFilter(new ProcessingState[] { ProcessingState.Completed, ProcessingState.Failed }); }

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