Forum rules - please read before posting.

InputField click and ENTER key confusion

Hi there,

I am using Unity UI with an Inputfield, which is linked to AC.
"Enter" key is linked to a button that saves the input (player's name variable).

It all works as expected, but clicking outside of the inputfield somehow has the same effect as pressing the ENTER key.
So if a player types their name and clicks outside the field, the variable is saved.

I assume it's an input issue, but I can't seem to fix it. I am using Mouse and Keyboard and the Unity input system package.

Comments

  • What are your AC and Unity versions?

    Place an ActionList: Comment Action at the top of the Button's ActionList, and give it some text to show up in the Console when it runs. Then, share that along with its full stacktrace.

  • Thanks, I'm using:

    • Unity 6.2 (just updated from 6.0)
    • AC 1.83

    I can confirm that selecting the input field and clicking outside of it triggers the action list comment. Pressing the ENTER key does the same. Clicking the button linked in the menu also triggers it.

    Selecting the input text and clicking inside the input box doesn't trigger it.

    Could it be a TextMeshPro issue? I have played around with settings to no avail.

  • Pressing Enter should trigger it - but I need to see the Comment in full as it appears when clicking outside any of the fields.

    Are you using Input System or Input Manager for input handling?

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.