Version: 2022.1
言語: 日本語

説明

Marker flags.

Use to determine marker origin and verbosity level.

using System;
using System.Collections.Generic;
using UnityEditor.Profiling;
using Unity.Profiling.LowLevel;

public class Example { public static void GetAllWarningMarkers(FrameDataView frameData, List<int> warningMarkerIds) { warningMarkerIds.Clear(); var markers = new List<FrameDataView.MarkerInfo>(); frameData.GetMarkers(markers); foreach (var marker in markers) { if (marker.flags.HasFlag(MarkerFlags.Warning)) warningMarkerIds.Add(marker.id); } } }

See Also: MarkerFlags.