Blender_bevy_components_workflow icon indicating copy to clipboard operation
Blender_bevy_components_workflow copied to clipboard

Can't see blueprints not in a world scene

Open andriyDev opened this issue 1 year ago • 2 comments

I want to have a single Blender file with my game objects. However these are not present in any world scene since they are intended to be created by the player. When I try to create my blend file without a world scene, I can't see the blueprints in Blender to enable their auto export.

I was able to workaround this by adding the AutoExport property and that seems to work, though Bevy tries to load the property as a component and gives warnings, and the always_export flag isn't even set in the UI.

andriyDev avatar Aug 23 '24 01:08 andriyDev

Hi, I'm using blenvy version 0.1.0-alpha.1 I'm confused because I'm adding a new collection in the Library scene intended to use it as a blueprint to manually spawn in bevy game. But the collection (and its content) is not exported into the blueprints folder (the glb file and its metadata is not generated on blender save).

It seems to be exported only when the collection is manually added as an object inside the World scene.

Is this the expected behaviour ? Because as I understand, the content of the library are items that can be used as blueprints (and therefor have to be generated as single files inside blueprints folder)

Thanks for your clarification

agjini avatar Sep 22 '24 09:09 agjini

Same issue here, blueprints dont export from library scenes -- only from level scenes.

Workaround

  • create a new scene in blender, ie "Spawnables", and mark it as a "level scene" in the Blenvy addon
  • add collection instances (blueprints) you want to spawn in/export to the new level scene
  • save the project

You can check ./assets/blueprints/ to see what blueprints are exported from blender.

LeonKuhne avatar Oct 16 '24 17:10 LeonKuhne