Get from list

Hey how can i get the string from a list only by using the number of the string in the list

like i got a list with 5 diffrent string

“Mathias”
“Haakon”
“TestName”
“TestName 2”
“TestName 3”

and i want to get the name Haakon only by using the number 1 and then post it in the debug log

Hi. If it’s an array of string:

public string[] _names;

void Start() {
  Debug.Log(_names[1]); // here you show on console the name on position 1
}

if it’s a generics List<>:

public List<string> _names;

void Start() {
  Debug.Log(_names[1]); // here you show on console the name on position 1
}

The same way.
Hope it helps.

Best regards,
PJRM.

Yeah its just what i looked for