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];
posted @ 2018-07-12 19:04  何人之名  阅读(68)  评论(0)    收藏  举报