For the complete documentation index, see llms.txt. This page is also available as Markdown.

OnInputFieldUpdated

This event is called when the input field of the chat box has been updated.

Parameters

string

The string value of the input field.

using UnityEngine;
using TankAndHealerStudioAssets;

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


	void Start ()
	{
		chatBox.OnInputFieldUpdated += ( message ) =>
		{
			print( $"Input Field Updated: {message}" );
		};

		// OR //

		chatBox.OnInputFieldUpdated += OnInputFieldUpdated;
	}

	void OnInputFieldUpdated ( string message )
	{
		print( $"This also works! Input Field Updated: {message}" );
	}
}

Last updated