Skip to content

Multiple loading stages #190

@feelingsonice

Description

@feelingsonice

Trying to figure out if there's a way I can load different assets in multiple difference stages. An canonical example of this is:

  1. Load a config RON.
  2. From the config RON, find a path for some .png file that needs to be loaded.
  3. Load the .png file as a Image.

Right now I'm loading the config RON using bevy_asset_loader, then after the loading state, I manually load the .png file and then manually trigger another state change to a third state where "everything" is finally loaded.

I also see there's the init_resource.rs example. Very useful but seems to be for "computing" a final resource rather than loading another file. Wondering if there's a canonical approach here?

Thanks in advance :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions