Are there any chance we could have true vector graphic in unity for 2D and ui ?
I mean, I want to draw some UI as vector formula instead of it being imported as sprite, such as round border textbox. And have it scale crisp in any size and ratio at runtime. Or the logo and symbol in button. Or the background that gradient shade to any length of the phone
It could be rasterized but I wish to have it done at runtime on awake or repaint, so it can be responsive on the scale of screen
UI Toolkit offers the Painter2D that allows drawing true vector shapes. We have plans to bring similar rendering capabilities to the vector graphics package as well, so that could be used for icons and such.
oh that sounds good, but why not a generic Painter2D package? - must it be tied into UI Toolkit, you could use such a package for drawing many things. If it simply output a mesh definition.
Why canāt you create a single bezierPathSegment(it says incomplete sprite data when you try to create a segment with one bezierPathSegment)? Letās say you have P0,P1,P2, that should be a complete quadratic bezier curve. But, you have to create a second bezierPathSegment and add that to an array of bezierPathSegments. It acts more like a cubic bezier curve and not a quadratic curve because segment[0].P1 and segment[0].P2 acts like two control points but a quadratic bezier curve should only have one control point that control the curvature between two points