Skip to content

VVishion/bevy-map-handle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

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

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Languages