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.
private ChatLog chatLog; void Start() { chatLog = GetComponent<ChatLog>(); } void Update() { if (Input.GetKey(KeyCode.LeftArrow)) chatLog.Write("Player Moves Left"); if (Input.GetKey(KeyCode.RightArrow)) chatLog.Write("Player Moves Right"); }