DropDownList with string array in Editor Inspector
// Choose an option from the list
_choiceIndex = EditorGUILayout.Popup(_choiceIndex, _choices);
// Update the selected option on the underlying instance of SomeClass
var someClass = target as SomeClass;
someClass.choice = _choices[_choiceIndex];

浙公网安备 33010602011771号