- Home /
Question by
Makatralsy · Jan 03, 2018 at 09:47 PM ·
inputcontrollerstringjoystickxboxcontroller
Using Input.GetJoystickNames
Hello i'm trying to use Input.GetJoystickNames according to the example given in the documentation, however instead of returning the name of the controller(Xbox One Controller for Windows) it give me "System.string[]". I honestly have no clue as to how to fix this so I would like some help with this.
Comment
Best Answer
Answer by OneCept-Games · Jan 03, 2018 at 10:47 PM
This is because you are getting an Array of names back in this case. Loop through the names[] returned fro the function call and then you will be able to display them one by one.