Skip to content
Discussion options

You must be logged in to vote

Most of the time, PointLightBundle and PbrBundle and other Bundles aren't meant to be inserted onto the same entity. (A notable exception is PickableBundle, which you're using properly.

PointLightBundle and PbrBundle both share a subset of components: Transform, GlobalTransform, Visibility, InheritedVisibility, and ViewVisibility which are required for them to do their things.

When you remove PointLightBundle, you are removing those required components.

It's a bit of a fluke that insert(PointLightBundle) on an existing PbrBundle is doing what you want. This won't be the case for most built-in Bevy bundles. You should spawn a separate PointLightBundle entity as a child of your PbrBundle en…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@wbpaley
Comment options

@wbpaley
Comment options

@wbpaley
Comment options

Comment options

You must be logged in to vote
1 reply
@wbpaley
Comment options

Answer selected by wbpaley
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants