Skip to content

Get Handle to existing Asset (from the AssetId) #11743

Answered by nicopap
thmxv asked this question in Q&A
Discussion options

You must be logged in to vote

Just a tip, in the rust doc, you can search for "function that accept type X and return type Y" with the ->. As follow: https://docs.rs/bevy/latest/bevy/asset/enum.AssetId.html?search=AssetId%20-%3E%20Handle%3CA%3E.

I did investigate the get_id_handle implementation and it looks like a bug to me. I'll open an issue.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@nicopap
Comment options

Answer selected by thmxv
@nicopap
Comment options

@thmxv
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