Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Bevy Ghx Proc(edural) Gen(eneration)
Bevy
plugins and utilities for ghx_proc_gen
Bevy quickstart
cargo add bevy_ghx_proc_gen
Steps 1
to 3
are the same as in the ghx_proc_gen
Quickstart.
- To automatically spawn our assets for us, we use the provided plugins
app.add_plugins;
- To see something in the Bevy viewport, we setup assets in a
ModelsAssets
:
- Spawn an
Entity
with aGeneratorBundle
:
// The plugins will detect this, run the generator and spawn the nodes.
commands.spawn;
- For more information, check out the
bevy_ghx_proc_gen
crate documentation or the Examples. - Almost all systems, structs components, resources, ... have a
pub
visibility, so you can use or override them in custom plugins
Bevy plugins
- Check out the
GridDebugPlugin
frombevy_ghx_grid
which provides debug utilities for the grid-types used byghx_proc_gen
.
ghx_proc_gen
does not need a plugin to work, but if you want a really quick way to get started, or are in need of some debug utilities for your generations, there are some ready-made plugins for this:
-
ProcGenSimplePlugin
: Really simple, just here to generate and spawn the nodes assets. See its sources. -
ProcGenDebugPlugin
[Depends onGridDebugPlugin
]: Just a bit more complex, and not focused on performance but rather on demos & debugging use-cases. You can view the generation one step at a time, see where the contradiction occurs and more. See its sources.- Keybindings as well as most settings used by the debug plugin can be overriden via some Bevy
Resource
. - Note that the debug plugin, with all features enabled, depends on other plugins to function propely, such as:
DefaultPickingPlugins
(from bevy_mod_picking),EguiPlugin
(from bevy_egui) or theGridDebugPlugin
(from bevy_ghx_grid)
- Keybindings as well as most settings used by the debug plugin can be overriden via some Bevy
Both of those plugins
start their work when you insert the components from a GeneratorBundle
on an Entity
.
ProcGenDebugPlugin
editing feature demo:
https://github.com/Henauxg/ghx_proc_gen/assets/19689618/b2f15673-e6aa-4a1d-94f7-a98c903a7591
https://github.com/Henauxg/ghx_proc_gen/assets/19689618/5fa26a8f-7454-4574-9cc3-f6f77fdd0049
Cargo features
Find the list and description in Cargo.toml
default-bundle-inserters
: This feature compiles simpleBundleInserter impl
for a few basic types. Disable the feature if you don't need them, or want to customize their implementation.reflect
: simply derivesReflect
on common structs of the crate.simple-plugin
: compiles the simple plugin and its systems.debug-plugin
: compiles the debug plugin, the grid debug plugin and their systems.picking
: Enables picking. Used by the debug-plugin if enabled.egui-edit
: Enables anegui
editor panel to inspect nodes and paint models
See also the main crate cargo features
Compatible Bevy versions
Compatibility with Bevy versions:
ghx_proc_gen | bevy_ghx_proc_gen | bevy |
---|---|---|
0.5 | 0.5 | 0.15 |
0.4 | 0.4 | 0.14 |
0.2-0.3 | 0.2-0.3 | 0.13 |
0.1 | 0.1 | 0.12 |
License
bevy-ghx-proc-gen is free and open source. All code in this repository is dual-licensed under either:
- MIT License (LICENSE-MIT or http://opensource.org/licenses/MIT)
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.