Skip to content

FeathersNumberInput doesn't work when spawned in the Update schedule #24356

@nic96

Description

@nic96

Bevy version and features

  • 0.19.0-rc.1
  • features bevy_feathers

What you did

Spawned FeathersNumberInput in Update schedule.

fn spawn_number_input(mut commands: Commands, mut is_spawned: Local<bool>) {
    if *is_spawned { return; }
    *is_spawned = true;
    commands.spawn_scene(bsn! { :FeathersNumberInput Node { width: px(200) } });
}

What went wrong

If I run the system in First it works properly but if I run it in PreUpdate, Update, or PostUpdate it doesn't work. The ValueChange events are firing when I type in the input but no text ever gets rendered in the input.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-UIGraphical user interfaces, styles, layouts, and widgetsC-BugAn unexpected or incorrect behaviorS-Ready-For-ImplementationThis issue is ready for an implementation PR. Go for it!

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    Needs SME Triage

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions