#What could trigger this event multiple times?

1 messages · Page 1 of 1 (latest)

graceful needle
#

This is the stacktrace.
The SubmitCommand gets called multiple times during gameplay, but if I try to debug it with a debugger, it will be called only once every single time.
The onsubmit subscription happens only once, because I have debugged that with print logs, and literally there's no other onsubmit subscriptions.
If I remove that 1 subscription, the SubmitCommand won't get triggered at all.
What could be the issue?

#

there are times, when it gets called 3 times, sometimes it gets called 2 times

#

Autoconnected Player "Autoconnected Player" submitcommand
UnityEngine.DebugLogHandler:Internal_Log(LogType, LogOption, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:LogError(Object)
secret.GuiConsole:SubmitCommand(String) (at C:\secret\GuiConsole.cs:1040)
UnityEngine.Events.InvokableCall1:Invoke(String) (at C:\build\output\unity\unity\Runtime\Export\UnityEvent\UnityEvent.cs:219) UnityEngine.Events.UnityEvent1:Invoke(String) (at C:\build\output\unity\unity\artifacts\generated\UnityEvent\UnityEvent_1.cs:57)
UnityEngine.UI.InputField:SendOnSubmit() (at .\Library\PackageCache\com.unity.ugui@befc7af3e8e5\Runtime\UGUI\UI\Core\InputField.cs:2406)
UnityEngine.UI.InputField:LateUpdate() (at .\Library\PackageCache\com.unity.ugui@befc7af3e8e5\Runtime\UGUI\UI\Core\InputField.cs:1485)

#

this is what gets called multiple times