Skip to content

Print errors when user forgets to .add_plugins(InputManagerPlugin::<XyzAction>::default()) #560

@atlv24

Description

@atlv24

Which feature is frustrating to use or confusing?

I often forget to .add_plugins(InputManagerPlugin::<XyzAction>::default()) and have everything else set up properly, there's an entity with InputManagerBundle and InputMap set up and I'm reading actions from a registered system, but the actions never happen because the plugin wasn't added.

Expectation

We can detect if actions are being read on an ActionState that has not been ticked and print errors. It should be rather simple to do this too, just have a flag "has plugin" default to false, and have the plugin set it to true. We might want this to compile out in release if perf is a concern.

Metadata

Metadata

Assignees

No one assigned

    Labels

    usabilityReduce user friction

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions