Question by
Juanpty507 · Dec 18, 2016 at 05:55 PM ·
unity 5editoreditor-scripting
String dropdown on Unity Event
Is there a way to add a dropdown of strings to pass as parameters to a function being called from a Unity Event? Other than using enums and converting enum name to string?
Comment
Answer by Adam-Mechtley · Dec 19, 2016 at 08:21 AM
You could create a custom PropertyAttribute / PropertyDrawer that uses EditorGUILayout.Popup () or similar.