Skip to content

How do I debug a callback that isn't getting triggered? #286

Closed Answered by makspll
timClicks asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

Quick thing first, I dont see you actually attaching the script to an entity or marking it as static, this would prevent the event handler from sending events to it.

See https://makspll.github.io/bevy_mod_scripting/Summary/running-scripts.html#attaching-scripts.

As for debugging, try running with bevy_mod_scripting_core=trace logging, this should tell you what's happening under the hood

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@timClicks
Comment options

Answer selected by timClicks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants