how to make drop down menu unity code example
Example 1: unity dropdown
Documentation : https://docs.unity3d.com/2018.4/Documentation/ScriptReference/UI.Dropdown.html
Adding a drpodown menu to your game : https://www.youtube.com/watch?v=5onggHOiZaw
Example 2: unity create drop down menu in inspector
public class Player : Monobehaviour
{
public List<string> NameList;
[Dropdown("NameList")]//input the path of the list
public string MyName;
}