Skip to content

Ghost Nodes produce warnings because of UiTransform #21712

@viridia

Description

@viridia

Bevy version and features

Bevy 0.17

What you did

I've been migrating code from earlier version of Bevy that use ghost nodes.

What went wrong

This now produces a slew of warnings, which it did not used to do:

2025-11-01T16:02:32.928747Z  WARN bevy_ecs::hierarchy: warning[B0004]: Entity 97v0 with the GlobalTransform component has a parent (91v0) without GlobalTransform.
This will cause inconsistent behaviors! See: https://bevy.org/learn/errors/b0004
2025-11-01T16:02:32.928766Z  WARN bevy_ecs::hierarchy: warning[B0004]: Entity 100v0 with the GlobalTransform component has a parent (99v0) without GlobalTransform.
This will cause inconsistent behaviors! See: https://bevy.org/learn/errors/b0004
2025-11-01T16:02:32.928890Z  WARN bevy_ecs::hierarchy: warning[B0004]: Entity 119v0 with the GlobalTransform component has a parent (112v0) without GlobalTransform.
This will cause inconsistent behaviors! See: https://bevy.org/learn/errors/b0004
2025-11-01T16:02:32.928909Z  WARN bevy_ecs::hierarchy: warning[B0004]: Entity 122v0 with the GlobalTransform component has a parent (121v0) without GlobalTransform.

The reason (as suggested on the Discord) is because of the replacement of GlobalTransform with UiGlobalTransform.

Additional information

Discord link: https://discord.com/channels/691052431525675048/1264881140007702558/1433598708800426014

@ickshonpe
@villor

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-ECSEntities, components, systems, and eventsC-BugAn unexpected or incorrect behaviorP-RegressionFunctionality that used to work but no longer does. Add a test for this!S-Needs-DesignThis issue requires design work to think about how it would best be accomplished

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions