pub fn validate_parent_has_component<C>(
world: DeferredWorld<'_>,
_: HookContext,
)where
C: Component,Expand description
An on_insert component hook that when run, will validate that the parent of a given entity
contains component C. This will print a warning if the parent does not contain C.