Closed Gingeh closed 4 months ago
This is expected and I will edit the documentation to mention that the image
annotation requires using a loading state.
The problem is that to change things like the sampler, I need to take the asset from the asset collection. For that, it needs to be loaded. But without a loading state, I cannot run code at the point where the asset is loaded.
I opened #230 to look into supporting the image annotation without a loading state, but I consider this issue closed with the updated documentation in #231
Using the
#[asset(image(...))]
on an image field causes the app to panic with "Only asset collection fields holding anImage
handle can be annotated withimage
".Here is an example which panics when run (with the necessary asset):