Skip to content
Discussion options

You must be logged in to vote

With the new Assets V2 system, I think your best shot is to implement a custom AssetSource which uses TCP to read the assets from the other app.
The documentation still seems to be a bit sparse, but the Bevy 0.12 announcement post gives an introduction on this topic.

From what I understand you would need to implement a custom AssetReader and then configure a new AssetSource to use that reader.

Then you could do something like

commands.spawn(SceneBundle {
    scene: asset_server.load("tcp://../assets/models/tmp/foo.gltf#Scene0"),
    ..default()
});

Maybe the FileAssetReader can serve as reference.

Hope that helps :)

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by wbpaley
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
A-Assets Load files from disk to use for things like images, models, and sounds
3 participants