Triggering Dialogue

Trigger Dialogue

If you have a reference to a Dialogue Graph, you can trigger it with the Trigger method. Also see Getting a Dialogue Graph.

myDialogueGraph.Trigger();

Interacting With Speakers

There are multiple methods you can use to interact with Speakers. Interacting with speakers will simply trigger dialogue with them if they have a dialogue graph set. Note that you must have Speakers set up properly for your game.

First of all, you may want to let Feel Speak know which Speaker is the player.

FeelSpeak.activePlayerSpeaker = myPlayerSpeaker;

If you're using the Feel Speak Initializer component, it may not be necssary to do this manually through code.

Interact With Closest

FeelSpeak.InteractWithClosestSpeaker simply interacts with the closest Speaker that is in range of the player.

FeelSpeak.InteractWithClosestSpeaker();

Interact With Specific

You can interact with a specific Speaker with the Interact or TriggerDialogue methods.

speakerToInteractWith.Interact();
speakerToInteractWith.TriggerDialogue();

Last updated