JS API assetLoader not including embedded assets
I have a Rive file that has a mix of both embedded assets (fonts) and referenced assets (images) being used. I use an asset loader when I've detected that there's some external assets included.
const config = {
// ...config
...((externalAssets.length > 0) && {
assetLoader: handleAssetLoad
}),
};
riveInstance = new Rive(config);
If I've marked the fonts in the Rive file as "Embedded" and the images as "Referenced", am I able to use the assetLoader only for the images? Currently, it seems like the runtime will only let you use one or the other, i.e. if I have any referenced assets and have added assetLoader to the instantiation, its assuming all of my assets are referenced and doesn't load the fonts. Am I doing something wrong?
I put together a quick example here that includes both referenced and embedded assets and all of them seem get referenced by assetLoader
. Can I see your handleAssetLoad
function to see if it's doing something differently to what I'm doing?