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.

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.