keijiro / MidiJack

MIDI input plugin for Unity
697 stars 113 forks source link

When loading a scene that uses MidiMaster.GetKeyDown(), the scene will no longer act appropriately. #56

Open GeorgeLee2182 opened 4 years ago

GeorgeLee2182 commented 4 years ago

I have a game that includes two scenes. The start menu, and the game that uses MidiJack. When playing the game for the first time everything works fine. If you then leave the game and load it back up none of the GetKeyDown()'s work as expected. I might be able to very rarely get an input if I mash all the keys as fast as I can. The MidiJack window shows that it is getting the same inputs, and GetKey() seems to work as it should even if the scene has been reloaded. I just can't seem to use GetKey() as a work around because holding it down means the note gets played every frame.

keijiro commented 4 years ago

Just FYI, I'm no longer actively working on this project. Instead, I'm maintaining a new MIDI plugin for the new input system called Minis.