Skip to main content

Response Service

Description

Manages dialogue option presentation and player selection during conversations. Filters available connections, populates option labels, handles keyboard and mouse input, and triggers navigation when the player selects an option.

Interface

Type
IChatResponseService

Inherits

Type
IDisposable

Properties

NameTypeDescription
currentSelectedOptionintThe index of the currently highlighted option.

Public Methods

NameParametersReturn TypeDescription
UpdateChatData node, bool displayOptionsvoidFilters connections, populates option labels, and optionally shows the options UI.
InputUpdateN/AvoidPolls NavigateUp, NavigateDown, and Advance input actions. On Advance, either advances the beat or selects the current option.
SelectOptionN/AvoidConfirms the current selection, applies blackboard effects, and navigates to the target node.
DisposeN/AvoidUnsubscribes from input events and cleans up.