- Home /
Question by
Slithas · Jun 14, 2017 at 08:52 AM ·
c#unity 5controllercontrollersconnect
How do you discern the number of controllers currently connected?
Hey all,
I'm making a multiplayer game and I'm trying to implement the controllers at the moment, but I don't know how to check to see how many controllers are currently connected. I thought to do something like use Input.GetJoystickNames().Length
but that doesn't lower if there's a disconnect.
I also have Rewired installed to help with mapping the controllers, if that's of aid here.
Thanks in advance!
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612124131im_/https://answers.unity.com/themes/thub/images/avi.jpg)