InsertBehavior(TStunt, Int32, IStuntBehavior) Method

Definition

Namespace Stunts
Assembly Stunts.dll

Inserts a behavior into the stunt behavior pipeline at the specified index.

public static TStunt InsertBehavior<TStunt>(this TStunt stunt, int index, IStuntBehavior behavior)
    where TStunt : IStunt

Type parameters

TStunt

Parameters

stunt
{TStunt}

The stunt to add the behavior to.

index
Int32

The index to insert the behavior at.

behavior
IStuntBehavior

A custom behavior to apply to the stunt.

Returns

{TStunt}