Skip to content

Improbable-Studios/demo-dialog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

###Resources:

  • Here is a good tutorial on how to use Unity for a dialog system.
  • Scrolling effect: display one char at a time + time delay

Instructions

  1. Download the dialog.unitypackage and import into your (empty) unity project. Open the scene dialog.unity

  2. Go to Edit --> Project settings --> Input and create a new input control with name "talk" and positive button = "left ctrl"

  3. Launch. Press left ctrl to see dialogs.

###Main

Global variables:

  1. scrollSpeed: int, how many characters per second, set to 10 currently

Implemented a line class and Speak function that will:

  1. display corresponding character name and dialog content;
  2. change the character texture to allow for different poses

###To do:

  • may switch to use GUI.Box?
  • change brightness of out-of-focus character
  • line should always center in the dialog box

About

Unity test-out: dialog system

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published