Using Unity Script to Create an NPC Talk System
In this third part of our robot unity tutorial series we’ll be creating a talk system that allows NPC characters such as our Holobot to talk to us by displaying text on the screen through a GUIText object. The player can then iterate through this text using a key defined in the Input Settings.
We’ll start off with a static variant where the lines of text just appear and disappear. We’ll then build on top of that to create a “scroll-in” effect for the text, similar to how some of the older games did it.