Select from list or array

Select the player's name from Name List

public class Player : Monobehaviour{
    public List<string> NameList; 
    
    [Dropdown("NameList")]//input the path of the list
    public string MyName;
}

Select the player's name from Name Array

public class Player : Monobehaviour{
    public string[] NameArray; 
    
    [Dropdown("NameArray")]//input the path of the array
    public string MyName;
}

Last updated