bevyengine / bevyengine/bevy

Custom measure func example

Open
#9,687 0 comments 0 reactions 0 assignees View on GitHub
A-UI C-Docs C-Examples
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 22h
Merged PRs (30d)
161

Description

## What problem does this solve or what need does it fill?

The `Measure` trait isn't well documented, it's all a bit magical. Even a lot of devs contributing to Bevy UI aren't aware that it exists.

## What solution would you like?

An example that uses a measure func to automatically control the size of a Bevy UI widget.

If someone has a nice idea for an example and wants to give this a go but isn't clear about how measure funcs work, I'd be happy to help with the `Measure` implementation.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.