Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Latest commit

 

History

History
106 lines (76 loc) · 3.38 KB

File metadata and controls

106 lines (76 loc) · 3.38 KB

Bevy Inspection - VSCode Extension

Runtime Monitoring & Modification Tool for Bevy Engine in VSCode extension.

Screenshot

⚠️ Warning

  • Not Official: This is a community-driven project, not affiliated with the official Bevy Engine team.
  • Early Development: Currently in alpha stage - expect bugs and missing features. Contributions welcome!

✨ Features

  • Review hierarchy of all entities in your scene
  • Rename and destroy entities
  • Review and modify components of entities in real time

📐 Supported Versions

Bevy Version Status
0.16+ Supported

Built on Bevy Remote Protocol via JSON-RPC 2.0 over HTTP.

📗 Getting Started

Installation

Configure Bevy Project

  1. Add required dependencies to your Cargo.toml:
[dependencies]
bevy = { version = "0.16", features = ["bevy_remote"] }
  1. Initialize plugins in your Bevy App:
fn main() {
    App::new()
        .add_plugins(RemotePlugin::default()) // Core remote protocol
        .add_plugins(RemoteHttpPlugin::default()) // Enable HTTP transport
        // ...other plugins
        .run();
}
  1. Launch your game and connect from VSCode using the extension.

Custom Components

For built-in Bevy components (with Reflect trait), inspection works automatically. For custom components:

#[derive(Component, Reflect, Default)] // Derive `Reflect` trait:
#[reflect(Component, Default)] // 'Component' is required for recognition
struct SimpleWeapon {
    #[reflect(ignore)] // Optional: hide sensitive fields
    secret_code: String,
    damage: f32,
    charge_time: f32,
}

fn main() {
    App::new()
        // ...other plugins
        .register_type::<SimpleWeapon>() // Register type
        // ...other registrations
        .run();
}

Custom Resources

Resource inspection not supported - work in progress

Examples

Refer to the examples directory for fully functional Bevy applications demonstrating correct configuration.

🔍 Related Documentation

Your engagement keeps Bevy Inspection thriving. Thank you!

🌐 Alternative Solutions