Skip to content

Support for optional/unset values in controls #1551

Open
@SamPruden

Description

@SamPruden

I'm just trying egui for the first time and I'm very impressed, but I've immediately run into something that appears unsupported.

I'm prototying an entity inspector for Bevy, and I want to be able to support editing of multiple simultaneously selected entities. Here's a Unity screenshot as an example of the common way of handling this.

image

Here I have two objects selected. Their rotations are identical, so those fields display normally. Their positions and scales differ, so no single value can be displayed for both, so the fields display in this unset state. These are still functional and active fields - if I type in them, or drag over them, a single value is entered and set for both of the selected objects.

I can't see a way to implement this functionality using egui without reimplementing all of the basic controls. It would be very nice if controls all had an unset state like this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    designSome architectual design work neededfeatureNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions