Skip to content

After entering the command and pressing Enter, the command is not executed. This happens every time. #111

@SkyKn1ght

Description

@SkyKn1ght

Description of the bug

After entering the command and pressing Enter, the command is not executed. This happens every time.

Platform specs

  • Unity version: 6000.2.10f1 with Unity UI 2.0.0
  • Platform: Windows
  • How did you download the plugin: Asset Store

Additional info

After tracing your code, I found that the issue stems from TextMeshPro - Input Field. When you press Enter, although the ‘\n’ is successfully added to the text, it does not trigger the OnValidateInput callback.

When I attempted to make the following modification in DebugLogManager.cs

commandInputField.onSubmit.AddListener(OnCommandSubmit);
Then handle command submission within the OnCommandSubmit() method.

This modification resolves the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions