Trait bevy::ecs::prelude::SystemParamFunction
[−]pub trait SystemParamFunction<In, Out, Param, Marker>: 'static + Send + Sync where
Param: SystemParam, {
unsafe fn run(
&mut self,
input: In,
state: &mut <Param as SystemParam>::Fetch,
system_meta: &SystemMeta,
world: &World,
change_tick: u32
) -> Out;
}
Expand description
A trait implemented for all functions that can be used as System
s.
Required Methods
unsafe fn run(
&mut self,
input: In,
state: &mut <Param as SystemParam>::Fetch,
system_meta: &SystemMeta,
world: &World,
change_tick: u32
) -> Out
unsafe fn run(
&mut self,
input: In,
state: &mut <Param as SystemParam>::Fetch,
system_meta: &SystemMeta,
world: &World,
change_tick: u32
) -> Out
Safety
This call might access any of the input parameters in an unsafe way. Make sure the data access is safe in the context of the system scheduler.