Version: 2021.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; } }