GetSampleChildrenCountRecursive(int)
Gets amount of direct and indirect child samples for the specific sample.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Method
- Namespace: UnityEditor.Profiling
- Assembly: UnityEditor
public int GetSampleChildrenCountRecursive(int sampleIndex)
Parameters
Index of the Profiler sample.
Returns
Type | Description |
|---|---|
| int | Returns amount of direct and indirect child samples. |
Remarks
Use to quickly advance to the next sibling sample.
Examples
using UnityEditor.Profiling;public class Example{ public static int SkipAllChildren(RawFrameDataView frameData, int sampleIndex) { return frameData.GetSampleChildrenCountRecursive(sampleIndex) + sampleIndex + 1; }}