Skip to content

Conversation

@HeartofPhos
Copy link
Contributor

Objective

Fixes #21980

Solution

Use fully qualified path for Entity

Testing

The following code now compiles

mod test {
    fn derive_component_relationship_hygiene() {
        #[derive(Debug, bevy::prelude::Component)]
        #[relationship(relationship_target = RelTarget)]
        struct Rel(pub bevy::prelude::Entity);

        #[derive(Debug, bevy::prelude::Component)]
        #[relationship_target(relationship = Rel)]
        struct RelTarget(bevy::prelude::Entity);
    }
}```

@HeartofPhos HeartofPhos changed the title use fully qualified path for Entity #21980 Fix Component/Relationship derive use non fully qualified path Nov 30, 2025
@HeartofPhos HeartofPhos changed the title #21980 Fix Component/Relationship derive use non fully qualified path #21980 Fix Component/Relationship derive using non fully qualified path Nov 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Component/Relationship derive uses a non fully qualified path

1 participant