PrefabDrawerUtilsSwitchT Method
Switch elements in the list.
Namespace: NorthLab.PrefabDrawerAssembly: NL.PrefabDrawer (in NL.PrefabDrawer.dll) Version: 1.0.0.0
public static void Switch<T>(
ref List<T> list,
int oldIndex,
int newIndex
)
where T : struct, new()
- list ListT
- Referenced list.
- oldIndex Int32
- Index of the first element.
- newIndex Int32
- Index of the second element.
- T
- Type of the list. T is struct.