Skip to content

Hot load at runtime #4184

Answered by marko-lazic
wotori asked this question in Q&A
Mar 11, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Create a backend piece of software that scans and generates a scene.scn file based on an asset in your specified directory.
It should pack .scn into a new directory together with copied assets into your 3D gallery assets/scenes folder.
Create a bevy app that would scan assets/scenes for new scenes and spawn them to the gallery.

Remarks

  • There is asset_server.watch_for_changes() that may be of interest to you.
  • Spawn scene with scene_spawner.spawn_dynamic()
  • bevy_blender_toolkit is one place to look at how scenes can be created and assets loaded.
  • Make a simple configuration in your backend app. Path to folder on the computer, path to the gallery assets folder.
  • Draw some diagrams before codin…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@wotori
Comment options

Answer selected by wotori
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