Click or drag to resize
ICompositeMoveChild Method
Moves a child to the passed position inside the group.

Namespace: Slash.AI.BehaviorTrees.Interfaces
Assembly: Slash.AI.BehaviorTrees (in Slash.AI.BehaviorTrees.dll) Version: 1.0.6018.40184
Syntax
void MoveChild(
	int oldIndex,
	int newIndex
)

Parameters

oldIndex
Type: SystemInt32
Old position of the child.
newIndex
Type: SystemInt32
New position of the child.
Exceptions
ExceptionCondition
ArgumentOutOfRangeException Thrown if passed old index isn't between 0 and Children.Count (exclusive).
ArgumentOutOfRangeException Thrown if passed new index isn't between 0 and Children.Count (exclusive).
See Also