Skip to content

ITextStudioReactionActionState

InterfaceTextStudioTextStudio
public interface ITextStudioReactionActionState

Reusable host-local state. CreateState runs during preparation or pool growth, never in a warmed sample.

Sample(in TextStudioReactionContext, float, double)

Section titled “Sample(in TextStudioReactionContext, float, double)”
TextStudioReactionActionSample Sample(in TextStudioReactionContext context, float progress, double hostTime)

Samples the response at the supplied progress and host time, returning action events or target loss.

Parameters

NameType
contextTextStudio.TextStudioReactionContext
progressSystem.Single
hostTimeSystem.Double

Returns

TextStudio.TextStudioReactionActionSample

void Complete(in TextStudioReactionContext context)

Handles successful completion after the response reaches its end.

Parameters

NameType
contextTextStudio.TextStudioReactionContext

Cancel(in TextStudioReactionContext, TextStudioReactionCancelReason)

Section titled “Cancel(in TextStudioReactionContext, TextStudioReactionCancelReason)”
void Cancel(in TextStudioReactionContext context, TextStudioReactionCancelReason reason)

Cancels an action for the supplied reason and performs its cancellation cleanup.

Parameters

NameType
contextTextStudio.TextStudioReactionContext
reasonTextStudio.TextStudioReactionCancelReason
void Dispose()

Releases resources owned by this action state when the state is no longer used.