Callback Issue with Controller Support
I have been trying to figure out the issue with a callback error related to an onDeviceChange Unity Event I was using to detect controller connection and disconnection for quite a long time. I had talked with another person on the team about the issue and he suggested that I needed to unsubscribe from the Unity Event, which seemed tricky to me because the setup for this Unity Event was different than usual. He showed me that I can subscribe the event through the use of a listener and then simply unsubscribe OnDisable. I just simply needed to pass in InputDevice and InputDeviceChange parameters and then pass those into the where they are needed in the function. This prevent the issue of never unsubscribing from the event when disabled and thus creating errors.
Disavowed
Status | In development |
Authors | King Studio, Devon0033, Mike_Sroka, Michael-W-Smith7 |
Genre | Adventure |
Tags | 2D, Action-Adventure, Metroidvania, Unity |
More posts
- Steam Launch!!!Dec 17, 2022
- Coming to a closeDec 16, 2022
- Project OverviewDec 14, 2022
- Steam StuffDec 13, 2022
- Achievement GetDec 11, 2022
- Controls Remapping AgainDec 10, 2022
- Steam funDec 09, 2022
- Boss Music ImplementationDec 09, 2022
- SteamWorksDec 02, 2022
Leave a comment
Log in with itch.io to leave a comment.