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

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

Parameters

oldIndex
Type: SystemInt32
Old position of the child.
newIndex
Type: SystemInt32
New position of the child.

Implements

ICompositeMoveChild(Int32, Int32)
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionThrown if passed old index isn't between 0 and Children.Count (exclusive).
ArgumentOutOfRangeExceptionThrown if passed new index isn't between 0 and Children.Count (exclusive).
See Also