In-game log for Unity with scrolling credit effects. Useful for outputting chat messages and player behaviour.
Read this in other languages: English, 한국어.
No dependencies other than Unity are required. Let me know if anything happens!
- Create an empty GameObject and name it ChatLog.
- Download the ChatLog.cs script and add it to the GameObject.
- You can now print the text to display.
privateChatLogchatLog;voidStart(){chatLog=GetComponent<ChatLog>();}voidUpdate(){if(Input.GetKey(KeyCode.LeftArrow))chatLog.Write("Player Moves Left");if(Input.GetKey(KeyCode.RightArrow))chatLog.Write("Player Moves Right");}