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;
}
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;
}
dropdown in unity inspector
enum myEnum // your custom enumeration { Item1, Item2, Item3 }; var dropDown = myEnum.Item1; // this public var should appear as a drop down
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us