chore(testing): added missing component filtering

This commit is contained in:
kaosat.dev 2024-05-12 11:05:45 +02:00
parent 0172bbe511
commit 0432769bda

View File

@ -11,13 +11,14 @@ impl Plugin for CorePlugin {
fn build(&self, app: &mut App) { fn build(&self, app: &mut App) {
app.add_plugins(( app.add_plugins((
ExportRegistryPlugin { ExportRegistryPlugin {
component_filter: SceneFilter::Denylist(HashSet::from([
component_filter: SceneFilter::Denylist(HashSet::from([ // this is using Bevy's build in SceneFilter, you can compose what components you want to allow/deny // this is using Bevy's build in SceneFilter, you can compose what components you want to allow/deny
TypeId::of::<ComponentAToFilterOut>(), TypeId::of::<ComponentAToFilterOut>(),
TypeId::of::<ComponentBToFilterOut>(), TypeId::of::<ComponentBToFilterOut>(),
// and any other commponent you want to include/exclude // and any other commponent you want to include/exclude
])), ])),
..Default::default()}, ..Default::default()
},
BlueprintsPlugin { BlueprintsPlugin {
library_folder: "blueprints".into(), library_folder: "blueprints".into(),
format: GltfFormat::GLB, format: GltfFormat::GLB,