-
Notifications
You must be signed in to change notification settings - Fork 415
OverlayGUI (Popups) #38
Comments
When curEditorState.zoom != 1,the hint&popups wouldn't draw on the node.It troubles me the whole daytime,but I have no idea what's the renderring space when use the GUI class instead of GUILayout. |
That's an internal error of Unity. Apparently they considered the GUI scaling not as important to adjust popups, generic menus and tooltips to it:/ |
That's what I explained to my teammates.I just want to check out whether you guys have any idea. Finally, I want to show you my usage and thank you for your answer and great work. |
So, is there a solution to use enum popup at runtime? |
Not one that I know of. I've had plans to extend this - which isn't too hard given the base of the popups already in the framework - but not came to this so far. OverlayGUI is where I would put it, if you want you can check it out and see if it's something you want to tackle yourself. |
Description: For the Node Editor to properly work at runtime, we need support for all kinds of popups (GenericMenu, EnumPopup, IntPopup, etc., even Tooltip). This will also fix some bugs regarding node focussing problems, as these will not block user input straight away when clicking it (even the first click event). Additionally, this will open up the possibility to let them account for the zooming - respective built-in controls will simply ignore the GUI scaling:/
State: This is easily possible using the Popup Engine I already made for the GenericMenu to work.
Location: OverlayGUI.cs and RTEditorGUI.cs for implementing new popups
The text was updated successfully, but these errors were encountered: