u/Available_Height_873

Making a Unity-style UI System for s&box
▲ 16 r/sandbox

Making a Unity-style UI System for s&box

Hi, I've been messing with a Unity-inspired UI system for s&box and wanted to see what interest there is before putting more time into it. The goal is something familiar to anyone who's used Unity's UI. I think it's cool because if you don't want to use all that Blazor stuff and just drag and drop things, edit values, etc., you can. And you can do it all without being in play mode. 

Working now: 

  • Component-based UI; slots into the scene hierarchy like anything else
  • Anchor and alignment system
  • Parent/child layout — child UI components inherit position/scale from their parent
  • Reference resolution scaling
  • Editor preview dock with preset or custom resolutions, with proper letterboxing/pillarboxing so you can see exactly how it'll look at any aspect ratio
  • Two components so far: UIPanel and UILabel

TODO:

  • Buttons, text boxes, toggles, sliders, dropdowns
  • Images and sprites
  • Masking and clipping
  • Layout groups/grids
  • Scroll views
  • Controller support
youtube.com
u/Available_Height_873 — 3 days ago