Skip to content
Discussion options

You must be logged in to vote

The AssetsLoading Resource needs to be initialized/registered before it can be used. One way to do this is to derive the Default trait and call app.init_resource in fn main.

#[derive(Default)]
struct AssetsLoading(Vec<HandleUntyped>);
App::new()
    .init_resource::<AssetsLoading>()

Your next issue will be that check_assets_ready needs to be a normal system. Right now it is only running once, but it needs to be running all the time to keep checking if the asset is ready. So use .add_system instead of .add_startup_system for that system.

After that, you should be seeing some pretty colors and things getting spawned. Too many things being spawned, in fact! Because check_assets_ready is now …

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by lattice0
Comment options

You must be logged in to vote
4 replies
@rparrett
Comment options

@lattice0
Comment options

@rparrett
Comment options

@lattice0
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants