Hot swapping images at runtime
We can use the asset loader to dynamically load an image. However we can only do this when loading the rive instance.
It would be useful to replace an image without needing to reload the entire instance. Not only is this bad for performance, it also means that dev team need to code in some transition logic while the new instance loads. If there are any animations playing or state being stored, we need to handle all of that gracefully in code, ensuring it finishes before being unloaded and that the state is stored and re-applied.
Useful for things like profile pictures, character customization, etc. Basically things that can’t be embedded at design time.
This probably applies to other assets too, however I think images are the 99% use case.