EditorGUILayout.Popup method does not work for EditorWindows that are called with window.ShowModal() for MacOS platform.
To reproduce the bug, you have to use MacOS:
- Create custom EditorWindow.
- Add EditorGUILayout.Popup method to the OnGUI.
- Open window with window.ShowModal() method.
- Try to change value for the popup. It will be grayed out.
Can I ask: the content of your modal window is showing then?
Because on my Mac (MacBook Air M1 2020, macOS 12.6, Unity 2021.3.8f1) the window only gets painted after a click. Very annoying, but maybe it’s a local issue, so thought I’d ask you first.
(Sorry this isn’t a solution to your issue)
@ItsGonnaBeOk were you able to find a solution or workaround?
I see the same thing in 2021.3.21 and 2022.2.12 on a PropertyField bound to an enum property that gets rendered as a PopupField.
Unfortunately no, I had to switch to regular window instead of modal. Its Unitys internal bug, so I guess unless they fix it - we won’t have a proper solution.