Bevy Version:0.9(outdated!)

List All Resource Types

Click here for the full example code.

This example shows how to print a list of all types that have been added as resources.

fn print_resources(world: &World) {
    let components = world.components();

    let mut r: Vec<_> = world
        .map(|(id, _)| components.get_info(id).unwrap())

    // sort list alphebetically
    r.iter().for_each(|name| println!("{}", name));

Note that this does not give you a comprehensive list of every Bevy-provided type that is useful as a resource. It lists the types of all the resources currently added to the app (by all registered plugins, your own, etc.).

See here for a more useful list types provided in Bevy.