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; } }
Did you find this page useful? Please give it a rating: