bevy_ecs::system::command

Function init_resource

Source
pub fn init_resource<R: Resource + FromWorld>() -> impl Command
Expand description

A Command that inserts a Resource into the world using a value created with the FromWorld trait.