Toggles the state of the input field associated with the Ultimate Chat Box.
usingUnityEngine;usingTankAndHealerStudioAssets;publicclassChatBoxExample:MonoBehaviour{ // BE SURE TO ASSIGN THIS IN THE INSPECTOR //publicUltimateChatBox chatBox;voidUpdate () { // If the return key was pressed this frame...if( Input.GetKeyDown( KeyCode.Return ) ) { // Toggle the state of the input field.chatBox.ToggleInputField(); } }}