Click or drag to resize
ICompositeInsertChild Method
Inserts a child to this group task at the passed index.

Namespace: Slash.AI.BehaviorTrees.Interfaces
Assembly: Slash.AI.BehaviorTrees (in Slash.AI.BehaviorTrees.dll) Version: 1.0.6018.40184
Syntax
void InsertChild(
	int index,
	ITask child
)

Parameters

index
Type: SystemInt32
Position to add child to.
child
Type: Slash.AI.BehaviorTrees.InterfacesITask
Child to insert.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionThrown if passed index isn't between 0 and Children.Count (inclusive).
ArgumentOutOfRangeExceptionThrown if passed index isn't between 0 and Capacity (exclusive).
ExceptionThrown if child couldn't be inserted because capacity was reached.
See Also