Answers for "unity create drop down menu in inspector"

C#
0

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; 
}
Posted by: Guest on March-30-2021
0

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
Posted by: Guest on June-19-2021

C# Answers by Framework

Browse Popular Code Answers by Language