Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bevy Map Handles

Map Handle<T> to Handle<U>.

All handles pointing to asset a of type T will point to asset b of type U when mapped.

let mapped = match handle.map_weak::<U>() {
    Err(_) => panic!("asset is pending"),
    Ok(mapped) => mapped,
};

Make it strong with Assets<U> if desired:

mapped.make_strong(assets);

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Contributors

Languages