We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed140f5 commit e20ca25Copy full SHA for e20ca25
crates/bevy_ecs/src/world/interior_mutable_world.rs
@@ -468,7 +468,10 @@ impl<'w> InteriorMutableEntityRef<'w> {
468
/// - the [`InteriorMutableEntityRef`] has permission to access the component
469
/// - no other mutable references to the component exist at the same time
470
#[inline]
471
- pub fn get_change_ticks_by_id(&self, component_id: ComponentId) -> Option<ComponentTicks> {
+ pub unsafe fn get_change_ticks_by_id(
472
+ &self,
473
+ component_id: ComponentId,
474
+ ) -> Option<ComponentTicks> {
475
let info = self.world.components().get_info(component_id)?;
476
// SAFETY:
477
// - entity location and entity is valid
0 commit comments