You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can't figure out why my point light won't spawn or why I can't see its effects. Here is my current spawn system.
`
pub fn spawn_light(
mut commands: Commands,
) {
let light = PointLightBundle {
point_light: PointLight {
intensity: 2000.0,
..default()
},
transform: Transform::from_xyz(0.0, 5.0, 0.0),
..default()
};
commands.spawn(light);
println!("light spawned");
}
`
My camera spawns, my platform spawns, and "light spawned" prints, but the point light does not spawn. Why is that so? Also, I am not 100% sure that this is the right place to post this question, so if it is not, sorry and could you tell me the correct place?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I can't figure out why my point light won't spawn or why I can't see its effects. Here is my current spawn system.
`
pub fn spawn_light(
mut commands: Commands,
) {
let light = PointLightBundle {
point_light: PointLight {
intensity: 2000.0,
..default()
},
transform: Transform::from_xyz(0.0, 5.0, 0.0),
..default()
};
}
`
My camera spawns, my platform spawns, and "light spawned" prints, but the point light does not spawn. Why is that so? Also, I am not 100% sure that this is the right place to post this question, so if it is not, sorry and could you tell me the correct place?
Beta Was this translation helpful? Give feedback.
All reactions