X Tutup
Skip to content

Add a ClearCallbacks generated interface method #823

@Ramobo

Description

@Ramobo

This method does the exact opposite of SetCallbacks -- unsubscribes the given instance from the callbacks --, although it might have some design issues.

The reason I need this is to be able to make a global input manager instead of having several instances of a generated class all over my code. A global input manager should make it easier to control action maps. However, to do this, I need to be able to unsubscribe classes from the events in OnDisable. Right now, we can just disable the action map in the instance, but there's no practical way to unsubscribe from the events.

Actually, now that I think about it, there might not actually be many problems with it. I might try to implement it myself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      X Tutup