Version: 2022.2

RawFrameDataView.GetSampleChildrenCountRecursive

切换到手册
public int GetSampleChildrenCountRecursive (int sampleIndex);

参数

sampleIndex Index of the Profiler sample.

返回

int Returns amount of direct and indirect child samples.

描述

Gets amount of direct and indirect child samples for the specific sample.

Use to quickly advance to the next sibling sample.

using UnityEditor.Profiling;

public class Example { public static int SkipAllChildren(RawFrameDataView frameData, int sampleIndex) { return frameData.GetSampleChildrenCountRecursive(sampleIndex) + sampleIndex + 1; } }