Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 855 Bytes

README.md

File metadata and controls

34 lines (24 loc) · 855 Bytes

UnityChatLog

In-game log for Unity with scrolling credit effects. Useful for outputting chat messages and player behaviour.

demo unitychatlog

Read this in other languages: English, 한국어.

Installation

No dependencies other than Unity are required. Let me know if anything happens!

  1. Create an empty GameObject and name it ChatLog.
  2. Download the ChatLog.cs script and add it to the GameObject.
  3. You can now print the text to display.

Usage

	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");
	}