I d like to change the script
to make the Chat-Inputfield
not to desapear
after the User hits "Return".
At the end the Inputfield should always be visible.
I tried to modify the bl_ChatRoom.cs:
by disabling
" //chatInputField.DeactivateInputField();"
but this does not work.
My c#-skills end here,
so I would be very thankful for any help,
as the multiplayer-chat is a main feature for my project.
tx
Code: Select all
public void OnSubmit()
{
bl_GameData.Instance.isChating = !bl_GameData.Instance.isChating;
chatInputField.gameObject.SetActive(bl_GameData.Instance.isChating);
if (bl_GameData.Instance.isChating)
{
chatInputField.text = string.Empty;
chatInputField.ActivateInputField();
}
else
{
SetChat(chatInputField.text);
//chatInputField.DeactivateInputField();
}
}