Is the _UnhandledInput at the root of the scene the last to be called?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By veloSylraptor

To clarify my question here, is it safe to assume that:

Given that no autoload will care about inputs, the root of the scene will be the last to have its _UnhandledInput called?

The reason for my question is that I’m using C#, and Input Events tend to accumulate before the garbage collector takes it all in one go.

However, manually calling @event.Dispose() at the root of the scene seems to prevent accumulation of memory on every single input (mouse movements, key presses, etc).

I’m relatively new to programming and very new to Godot, so I guess I would like clarification as to whether or not my assumption is correct, and perhaps if there are some nuances I’m not aware of when I do this.