material plugin for use in headless mode

This commit is contained in:
Brandon Thomas
2024-03-24 21:21:35 -04:00
parent 7cea820d78
commit d8bd54d0ba
4 changed files with 44 additions and 19 deletions
+14
View File
@@ -0,0 +1,14 @@
use bevy::app::{App, Plugin};
use space_editor::prelude::EditorRegistryExt;
use crate::material::short_material::ShortMaterial;
pub mod short_material;
pub struct MaterialPlugin;
impl Plugin for MaterialPlugin {
fn build(&self, app: &mut App) {
app.register_type::<ShortMaterial>()
.editor_registry::<ShortMaterial>();
}
}