Will USS support a version of CSS Grid?
This is definitely something we’re considering adding. Thanks for the feedback!
Cool. Flex is great, but it’s 1D. Will Grid depend on support from the layout engine you are using? I didn’t see any mention of Grid on their site.
Piggy-backing… How about SVG Elements? Any cross-team work with the SVG group?
I’m not sure about that, but I don’t think we’ll have to wait for the layout engine to implement it for us.
We already have basic support for SVG assets. If you install the vector graphics package, you’ll be able to import your SVG assets as “UIElements Vector Image” in the Generated Asset Type option.
Afterward, you can reference the SVG assets in USS backgrounds or images, for example:
background-image: url("Assets/bg.svg");
That’s great. What about using the SVG namespace in the UXML file? Something like this doesn’t seen to work.
<ui:UXML xmlns:ui="UnityEngine.UIElements" xmlns:uie="UnityEditor.UIElements" xmlns:svg="http://www.w3.org/2000/svg">
<svg:svg width="300px" height="200px">
<svg:circle cx="150" cy="100" r="50" fill="#ff0000"/>
</svg:svg>
</ui:UXML>
We only support external SVG assets at this time. However, what you’re suggesting is an interesting use case. I’ll add that to our feature requests list! Thanks!
Awesome, it would really open up some possibilities. Like animated UI Components, 3D components, etc. Scaling could be simplified, and even pure SVG UI components could be developed.
BTW - The new system really is impressive. Great work!
necroing this thread, is it supported now ?
Still not supported.