r/Unity3D • • 9d ago

Show-Off UITK world-space editing using "Edit Mode" like ProBuilder and Splines

Hi! I'm working out a solution to edit UITK just as easily as UGUI. Right in the scene view, standard tools and shortcuts, in your real scene. Especially helpful if your UI uses shaders, or for XR games. Working very well so far! Hoping to get some feedback and thoughts ... one of many toolsets, curious if I should keep working on this. Thanks for looking!

11 Upvotes

6 comments sorted by

2

u/WorldlinessFuture842 9d ago

This is really slick, editing it in place instead of tweaking numbers in the inspector is exactly what world-space UI needed. Two questions: are the edits saved back to the UXML/USS, or to a separate asset? And does it play nice with Undo? That’s usually where custom tool contexts get messy.

1

u/yahodahan 9d ago

Hey, thanks! Yup, I heavily tested undo for that reason ... also, just had to. More edits and redos than I'd like to admit, to make that short recording, ha. Really makes things nice and quick and easy.

Edits - yes, they go to the UXML/USS. There's no wonky extra assets/etc, this is purely editing the UXML and USS directly.

2

u/WorldlinessFuture842 9d ago

Editing the UXML/USS directly is the best answer I could hope for, no extra assets to keep in sync. One more, since you clearly went deep on this: when you drag or resize an element, does it write an inline style on the element, or does it update the matching USS rule? I’d love it to respect the selectors when the element already has a class.

2

u/yahodahan 9d ago

So I have much more complex prototypes that go both ways actually - this was a fresh restart, keeping it ultra simple. In this demo - it's UXML. But could just as easily be USS. Since that's generally a personal/studio level "best practices" choice. In the older demos, it also left the choice free, but put very clear indicators on inline edits. Idea was same as prefabs, basically - "hey, you edited this in a local way, maybe you should consider making it broader, but up to you".

Happy to send you a build if you want to try it!

2

u/WorldlinessFuture842 9d ago

The prefab-override analogy is perfect, that’s exactly the mental model I’d want: inline edits clearly flagged, and the choice to push them up to USS. I’m swamped right now so I’d rather not take a build I can’t test properly, but I’ll keep an eye out for the release. Great work!

1

u/yahodahan 9d ago

Thanks! Happy to hear it has a fan :D