-
Hi, i have a little problem. I do not know, if i am making something wrong, but when i set the SpotLightBundle as child to player, it is not working. These is no light in scene. Other components work, like Camera for example.
|
Beta Was this translation helpful? Give feedback.
Answered by
nicopap
Aug 4, 2023
Replies: 1 comment 3 replies
-
Are you in 2d or 3d? Bevy doesn't support spotlights in 2d. If you are in 3d. You are probably missing the +.insert(SpatialBundle::default())
.with_children(|player| { |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
Ardn0
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Are you in 2d or 3d? Bevy doesn't support spotlights in 2d.
If you are in 3d. You are probably missing the
SpatialBundle
component on the parent entity (player
). Make sure to add aSpatialBundle::default()
. Something like:+.insert(SpatialBundle::default()) .with_children(|player| {