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.
Description of the bug
After entering the command and pressing Enter, the command is not executed. This happens every time.
Platform specs
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.