Skip to content

Use InputSystem.onBeforeUpdate instead of manually hooking into player loop#47

Open
TheNathannator wants to merge 1 commit intokeijiro:masterfrom
TheNathannator:update-loop-cleanup
Open

Use InputSystem.onBeforeUpdate instead of manually hooking into player loop#47
TheNathannator wants to merge 1 commit intokeijiro:masterfrom
TheNathannator:update-loop-cleanup

Conversation

@TheNathannator
Copy link
Copy Markdown

The input system package provides its own update callbacks that can be hooked into for updating state. These callbacks are called in both play mode and edit mode, and using onBeforeUpdate guarantees that inputs are queued and processed in the same update (instead of being delayed for a frame).

@keijiro keijiro self-assigned this Nov 14, 2025
@keijiro keijiro added the enhancement New feature or request label Nov 14, 2025
@keijiro
Copy link
Copy Markdown
Owner

keijiro commented Nov 14, 2025

Thanks for the PR. I had realized this approach recently as well but couldn't afford the time to update the code.

I'll run some tests, and if everything looks good, I'll merge it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants