Skip to content

Why is this asset being dropped/removed? #14755

Answered by k9
k9 asked this question in Q&A
Aug 15, 2024 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

OK I think some debugging showed me the issue. In this case the asset wasn't being removed due to the handle's reference count going to zero, but because the image was being extracted into the Render World.

/// This system extracts all created or modified assets of the corresponding [`RenderAsset::SourceAsset`] type

I tried changing the asset usage from RenderAssetUsages::RENDER_WORLD to RenderAssetUsages::RENDER_WORLD | RenderAssetUsages::MAIN_WORLD and now it's not dropped! Thanks for the help!

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@k9
Comment options

@simbleau
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by k9
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