PrefabDrawerUtilsSwitchT Method

Switch elements in the list.

Definition

Namespace: NorthLab.PrefabDrawer
Assembly: NL.PrefabDrawer (in NL.PrefabDrawer.dll) Version: 1.0.0.0
C#
public static void Switch<T>(
	ref List<T> list,
	int oldIndex,
	int newIndex
)
where T : struct, new()

Parameters

list  ListT
Referenced list.
oldIndex  Int32
Index of the first element.
newIndex  Int32
Index of the second element.

Type Parameters

T
Type of the list. T is struct.

See Also