Skip to content

Commit

Permalink
feat(bevy_components): set of fixes & improvements (kaosat-dev#128)
Browse files Browse the repository at this point in the history
 * fixed issue with "reload registry" not clearing previous data
 * added watcher/ poll system to automatically updated the registry & components list when the registry file has been changed
* BREAKING CHANGE ! changed internal representation of components, incompatible with v0.1, breaks UI values.
* added buttons to regenerate UI to account for/fix the above and to offer the ability to regenerate UI values from custom property values
* lots of cleanups
* added tests 
* closes kaosat-dev#127 
* closes kaosat-dev#124 
* closes kaosat-dev#121 
* closes kaosat-dev#130
  • Loading branch information
kaosat-dev authored Feb 18, 2024
1 parent 0083295 commit 20b6fa6
Show file tree
Hide file tree
Showing 56 changed files with 13,293 additions and 207 deletions.
7 changes: 3 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,15 @@ members = [
"examples/common/",

"examples/bevy_gltf_components/basic/",

"examples/bevy_gltf_blueprints/basic/",
"examples/bevy_gltf_blueprints/basic_xpbd_physics/",
"examples/bevy_gltf_blueprints/animation/",
"examples/bevy_gltf_blueprints/multiple_levels_multiple_blendfiles",
"examples/bevy_gltf_blueprints/materials/",

"examples/bevy_gltf_save_load/basic/",

"examples/bevy_registry_export/basic"
"examples/bevy_registry_export/basic",

"testing/bevy_registry_export/basic"
]
resolver = "2"

Expand Down
Binary file modified examples/bevy_registry_export/basic/assets/basic.blend
Binary file not shown.
Binary file modified examples/bevy_registry_export/basic/assets/models/World.glb
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
16 changes: 16 additions & 0 deletions testing/bevy_registry_export/basic/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[package]
name = "bevy_bevy_registry_export_basic_testing"
version = "0.3.0"
edition = "2021"
license = "MIT OR Apache-2.0"

[dependencies]
bevy="0.12"
bevy_gltf_blueprints = { path = "../../../crates/bevy_gltf_blueprints" }
bevy_registry_export = { path = "../../../crates/bevy_registry_export" }
bevy_gltf_worlflow_examples_common = { path = "../../../examples/common" }

bevy_rapier3d = { version = "0.23.0", features = [ "serde-serialize", "debug-render-3d", "enhanced-determinism"] }
bevy_asset_loader = { version = "0.18", features = ["standard_dynamic_assets" ]}
bevy_editor_pls = { version = "0.6" }
rand = "0.8.5"
15 changes: 15 additions & 0 deletions testing/bevy_registry_export/basic/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Bevy registry export example/demo

This example showcases
* the use of the bevy_registry_export crate to extract all components & types information into a json file.
* That file is then used by the [Blender addon](https://github.com/kaosat-dev/Blender_bevy_components_workflow/tree/main/tools/bevy_components) to create Uis for each component,
to be able to add & edit Bevy components easilly in Blender !


## Running this example

```
cargo run --features bevy/dynamic_linking
```

Running the example also regenerates the registry.json file.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
({})
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
({
"world":File (path: "models/World.glb"),
"models": Folder (
path: "models/library",
),
})
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 20b6fa6

Please sign in to comment.