Player input manager "Player Joined Event" is firing but the "Player Left Event" is not! Why?
Hello! I am trying to set up local multiplayer using the new input system, on button press on any controller/keyboard, the "Player Joined event" is firing and calls the correct methods (Spawning a character select prefab and adding a new player to the player input manager). However, the "Player left event" only fires when play mode! has ended. Why it not firing when I disconnect the controller for example?
Any advice or help would be appreciated! Thankyou!
Answer by akiruaki · May 24 at 11:14 PM
Hello, Player Left Event is not used for when the controller is disconnected, i am not sure for when or what it does, but if you want to get the event of disconnecting the gamepad, in player input there is a method called device lost event, and it helps for when you want to pause when the controller is disconnected c:
Your answer
Follow this Question
Related Questions
Input System 2019 : onCreatePlayer and onDestroyPlayer 0 Answers
Input.GetAxisRaw with New Input System? 0 Answers
How to disable Vive Controllers 5.5 support 1 Answer
Input problems in Unity 0 Answers
Xbox360 Trigger Axis not recognized 0 Answers