ScriptReference/IMGUI.Controls.AdvancedDropdown #74
Replies: 1 comment
-
If you want a callback for when the dropdown has been closed (cancelled or selected) you can use this hack: ...
dropdown.Show();
EditorApplication.update += DropdownUpdate;
}
private void DropdownUpdate()
{
if (EditorGUIUtility.editingTextField)
return;
EditorApplication.update -= DropdownUpdate;
// dropdown was closed / cancelled.
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
ScriptReference/IMGUI.Controls.AdvancedDropdown
https://docs.unity3d.com/ScriptReference/IMGUI.Controls.AdvancedDropdown.html
Beta Was this translation helpful? Give feedback.
All reactions