Unfortunately, Bevy's development took a direction that made it difficult to maintain UI shapes. Therefore, this feature was removed briefly after implementation. If you are interested in bringing this feature back, you're welcome to submit a PR.
Changes and usage notes
Added ui example
Added build_ui and build_ui_as as GeometryBuilder associated functions
Changed render pipeline UUID handles to hexadecimal format
Shapes will update on changed Path
Notes:
Size won't have effect as I removed from the shader the NodeSize uniform. It would expect elements that would fit properly in a 1x1 pixel/units square to work properly, but bevy_prototype_lyon can't guarantee this condition at the moment.
Comments
It's recommended to check out the ui example to learn how to use build_ui and build_ui_as (spoiler: it's similar to the "normal" counterparts). Sorry if it's not minimal but I wanted to create something presentable...
Changes and usage notes
ui
examplebuild_ui
andbuild_ui_as
asGeometryBuilder
associated functionsPath
Notes:
Size
won't have effect as I removed from the shader theNodeSize
uniform. It would expect elements that would fit properly in a 1x1 pixel/units square to work properly, butbevy_prototype_lyon
can't guarantee this condition at the moment.Comments
ui
example to learn how to usebuild_ui
andbuild_ui_as
(spoiler: it's similar to the "normal" counterparts). Sorry if it's not minimal but I wanted to create something presentable...cc: @inodentry, @alice-i-cecile, @rparrett