InputField losing focus during conversation
Posted: Mon Nov 02, 2020 7:01 pm
Hi Tony,
Kind of a strange problem I've run into. I have a custom TMP_Inputfield that I'm bringing up in the Sequence of a node in a conversation like so:
Then once the player hits the submit button, it continues the conversation utilizing the new variable value:
This all works great! My problem is that my inputfield seems to lose focus (on every frame from what I can tell), so if I click on it, it will highlight the text and then immediately lose focus. I can only type in one letter or so unless I spam.
If I bring up the inputfield outside of a conversation, it works just fine. Is DS constantly stealing my focus? Am I missing a setting somewhere?
Thanks for your help!
Kind of a strange problem I've run into. I have a custom TMP_Inputfield that I'm bringing up in the Sequence of a node in a conversation like so:
Code: Select all
SetActive(HUDTextInput, true)@{{end}};
WaitForMessage(InnNamed)
Code: Select all
string innName = inputField.text;
DialogueLua.SetVariable("InnName", innName);
//Tell DS to continue conversation
Sequencer.Message("InnNamed");
If I bring up the inputfield outside of a conversation, it works just fine. Is DS constantly stealing my focus? Am I missing a setting somewhere?
Thanks for your help!