bevyengine / bevyengine/bevy

Ghost Nodes produce warnings because of UiTransform

Open
#21,712 12 comments 0 reactions 0 assignees View on GitHub
A-ECS C-Bug I-Regression S-Needs-Design
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 22h
Merged PRs (30d)
161

Description

## 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:

```rust
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

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.