Input System wont clear reference on reload scene
Hi, Im using the experimental Input system at the moment. I have a global inputcomponent that is marked DontDestroyOnLoad() to help me manage the input. The input component always fails to clear the player reference in the level after I call a reload.
This is how I bind my inputs In PlayerCharacter script:
UInputComponent.PlayerActions.TestControl.performed += Context => Damage(1);
And I always call to clear the reference OnDestroy() in PlayerCharacter script
UInputComponent.PlayerActions.TestControl.performed -= Context => Damage(1);
But it still gives me missing reference errors after the reload. Please help thanks.
Your answer
Follow this Question
Related Questions
I have created an Event based InputManager 0 Answers
[InputManager] Bind Negative Button and Positive Button to Touch Input 0 Answers
(Newbie's First Project) Object doesn't stop moving until long after I let go of the button 1 Answer
How to enable input when it is pressed? 1 Answer
Using voice recognition in unity to "read" to the game 0 Answers