Enable

Enables the chat box so that it can be interacted with.

using UnityEngine;

public class ChatBoxExample : MonoBehaviour
{
	// BE SURE TO ASSIGN THIS IN THE INSPECTOR //
	public UltimateChatBox chatBox;

	void Update ()
	{
		// If the space key has been pressed...
    		if( Input.GetKeyDown( KeyCode.Space ) )
        	{
        		// Enable the chat box.
			chatBox.Enable();
        	}
	}
}

Last updated