- Home /
Question by
tlewisSRT · Dec 20, 2019 at 09:25 AM ·
uibuginputfield
Problems selecting input field
I have a problem with input fields that the when I try to select them by clicking on them, the caret seems to 'flash' but the input field doesn't get selected.
The input field works on first time use, this problem seems to arise when the parent object is set unactive then set active again. It will then be unusable for the remainder of run time.
Bit stumped honestly, any ideas here?
inputfieldproblemsshort.gif
(49.7 kB)
Comment
Best Answer
Answer by tlewisSRT · Dec 20, 2019 at 11:24 AM
Solved. For anyone else having a similar problem, look for any manual calls to EventSystem.current.SetSelectedGameObject. There was an errant SetSelectedGameObject(null) call in another part of the code causing this to fail.