LMNT > Configure API Key...
from the menu bar.
Get an API key...
button.
Save
button to continue. That’s it!
You’re all set to add dialogue to your game objects.
GameObject
GameObject
that you want to speak, and add an LMNT Speech
Component in the Inspector.
GameObject
to say.
GameObject
’s dialogue is configured, you can trigger it from a script. The easiest way
to do that is by adding the following code to your MonoObject
:
DialogueTriggerScript.cs
file in the LMNT package.
GameObject
by calling speech.dialogue = "New text to say";
. This will overwrite
the text you wrote in the Inspector.