Function init_resource

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

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