Clears the chat box of all registered chat entries.
using UnityEngine;
using TankAndHealerStudioAssets;
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 ) )
{
// Clear the chat box of all entries.
chatBox.ClearChat();
}
}
}