Skip to content

Adding speaking NPC

GreenBlackSky edited this page Oct 29, 2020 · 3 revisions

Our players need someone to speak with.

  1. Add a model to the game. Mesh, material, animation, you know the drill.
  2. Add an icon to the NPC (See Add new icon to object in game )
  3. Add "Talkable.cs" to the object in the inspector via "Add component" button, or drug'n'drop.
  4. In the "speakerUID" field of "Talkable" set speakers uid. It is a string, and it must be unique.
  5. Open Dialogue editor with "Window -> Dialogue" menu. Here you can create lines and relies for your NPC.
  • UID of your speaker will not appear in any drop down menus in editor until you save your conversation with "Save as".
  • UID of conversation must match UID you set for your NPC. It is case-sensetive.
  1. Create a conversation and save it. You can edit it any time. Now you have someone for your player to talk to, nice job!

Clone this wiki locally