We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 15c9af5 commit 2baa5c7Copy full SHA for 2baa5c7
crates/bevy_core_pipeline/src/oit/mod.rs
@@ -71,10 +71,13 @@ impl Component for OrderIndependentTransparencySettings {
71
type Mutability = Mutable;
72
73
fn register_component_hooks(hooks: &mut ComponentHooks) {
74
- hooks.on_add(|world, entity, _| {
+ hooks.on_add(|world, entity, _, caller| {
75
if let Some(value) = world.get::<OrderIndependentTransparencySettings>(entity) {
76
if value.layer_count > 32 {
77
- warn!("OrderIndependentTransparencySettings layer_count set to {} might be too high.", value.layer_count);
+ warn!("{}OrderIndependentTransparencySettings layer_count set to {} might be too high.",
78
+ caller.map(|location|format!("{location}: ")).unwrap_or_default(),
79
+ value.layer_count
80
+ );
81
}
82
83
});
0 commit comments