This are the steps you have to follow in order to get your dialogue set up.
For more information about the different parts of the system, check Components.
If something doesn’t seem to work, check Troubleshoot / F.A.Q..
Talk
component attacked to it. While you’re at it, assign it a color in the PlayerChatBubbleColor
public field, and the maximum distance an NPC can be to be in reach, and the key the player should press to talk.NPC
tag to it. If you don’t have it in your tag list, create it, and assign it to your NPC.DialogueContainer
component to your NPC.PrefabUI
field has the SpeechBubblePrefab
assigned to it. If that’s not the case, drag and drop the prefab onto this field.Conversations
field. If its value is 0, change it to 1, and new things will appear.Lines
field that just appeared. If it’s 0, change it for any positive number.Talker Name
and Lines
fields with your dialogue.Talk
, if an NPC is in reach, dialogue will trigger. Just press the E key repeatedly to exhaust dialogue.