-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resources missing from resource panel #94
Comments
You're missing |
Yup. Needed both of those. Gracias Working: use bevy::prelude::*;
use bevy_editor_pls::prelude::*;
fn main() {
App::new()
.add_plugins(DefaultPlugins)
.add_plugins(EditorPlugin::default())
.add_systems(Startup, setup)
.add_systems(Update, keyboard_input_system)
//.init_resource::<Speed>()
.insert_resource(Speed { s: 0.5 })
.register_type::<Speed>() //HERE
.run();
}
#[derive(Resource, Reflect)]
#[reflect(Resource)] //HERE
pub struct Speed {
pub s: f32,
} |
semi-relevant open bevy issue bevyengine/bevy#3936 |
Also I think |
I can't seem to figure out how to get my custom resource to show up in the panel. I've tried deriving Reflect based on reading the resource panel code, but to no avail.
What I have:
But
Speed
still does not show up in the resource panel.The text was updated successfully, but these errors were encountered: