[Unity Plugin Development] First glance Snap UI for the new Unity UI, layout manager.
Here at Celestial we have been particularly eager to get our hands on the new UI system. We very pleased with it even though we don't feel it completely meets our requirements just yet. In particular we want a better way to manage the look and feel and the layout. Also we miss the easy way the old GUI would allow us to build UI from code. With that in mind we have started building an extension we are calling Snap UI.
Snap UI is planned to assist with the following things for now.
First glance at Snap UI Column and Row layouts.
Column and Row layouts are the most basic of the layout types. We decided to build these first as they set up a lot of the layers we need to proceed with development.
Panel Manager
The Panel Manage makes panels drag-able on screen and also supports features for scaling them. There are quite a few modes to suit most anyone's requirements.
Snap UI is planned to assist with the following things for now.
- Layout
- Panels that can move or be scaled
- Rollover hints
- Look and feel management
- API to assist with the UI construction from code
- I18N (languages)
- Menu and Sub menu system
First glance at Snap UI Column and Row layouts.
Column and Row layouts are the most basic of the layout types. We decided to build these first as they set up a lot of the layers we need to proceed with development.
Panel Manager
The Panel Manage makes panels drag-able on screen and also supports features for scaling them. There are quite a few modes to suit most anyone's requirements.
Comments
Though what you're saying about a code based approach is different from the unity editor centric approach.
Looking at it though, and maybe this is more a general UI question, but how do UIs handle changing resolutions? And does your Snap UI take that into account, just scaling everything up or down SVG style?
The main significant change to the Unity layout components will he the scaling management and control. Fill but keep ratios etc. Grid and table layouts with proper view model controller systems. For lists of various items managed easily from code is the ultimate goal.
I will have a new video soon with the additional scaling considerations and some extentions to the look and feel. Mostly for me it's about been able to build the UI from code though.
Snap currently tires to use the panel space available and that means the panel will scale according to Unites rules. However we also introducing pack as a layout that resizes the panel.
Thanks for the feedback and questions the earlier the better esp if something is there all ready and I should be using that.
I'm sure you've already picked this up, but "Vertical" not "Verticle".. Based on that, are you planning on some kind of style system, so say the borders are optionally inherited from a style?
@mattbenic
Yip very swing-esk although far lighter I personally think swing was a little too heavy. Next build it almost ready for a video. Draggable and resizable windows with different resizing strategies and a memory. Don't be so sure :) my spelling is awful to start with and I am in what feels like a 6month game jam so just not sleeping.