Table of Contents

Method Sort

Namespace
Gamelogic.Extensions
Assembly
Gamelogic.Extensions.dll

Sort(Transform, Func<Transform, IComparable>)

Sorts the direct children of this transform by the value returned by sortFunction.

public static void Sort(this Transform transform, Func<Transform, IComparable> sortFunction)

Parameters

transform Transform

The transform whose children to sort.

sortFunction Func<Transform, IComparable>

A function that maps each child transform to a comparable sort key.