# OnUsernameHover

<table data-full-width="false"><thead><tr><th width="254">Parameters</th><th></th></tr></thead><tbody><tr><td>Vector2</td><td>The position of the input when the username was hovered.</td></tr><tr><td>ChatInformation</td><td>The information about the chat that the input is over.</td></tr></tbody></table>

{% code overflow="wrap" lineNumbers="true" fullWidth="true" %}

```csharp
using UnityEngine;
using TankAndHealerStudioAssets;

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


	void Start ()
	{
		chatBox.OnUsernameHover += ( inputPosition, chatInfo ) =>
		{
			print( $"Username: {chatInfo.Username}\nHover Position: {inputPosition}" );
		};

		// OR //

		chatBox.OnUsernameHover += OnUsernameHover;
	}

	void OnUsernameHover ( Vector2 inputPosition, UltimateChatBox.ChatInformation chatInfo )
	{
		print( $"This also works! Username: {chatInfo.Username}\nHover Position: {inputPosition}" );
	}
}
```

{% endcode %}
