Readd action set sync SystemSet
Signed-off-by: Schmarni <marnistromer@gmail.com>
This commit is contained in:
@@ -2,12 +2,15 @@ use crate::session::OxrSession;
|
|||||||
use bevy::prelude::*;
|
use bevy::prelude::*;
|
||||||
use bevy_xr::session::session_running;
|
use bevy_xr::session::session_running;
|
||||||
|
|
||||||
|
#[derive(SystemSet, Debug, Hash, PartialEq, Eq, Clone, Copy)]
|
||||||
|
pub struct ActionSetSyncSet;
|
||||||
|
|
||||||
impl Plugin for OxrActionSyncingPlugin {
|
impl Plugin for OxrActionSyncingPlugin {
|
||||||
fn build(&self, app: &mut App) {
|
fn build(&self, app: &mut App) {
|
||||||
app.add_event::<OxrSyncActionSet>();
|
app.add_event::<OxrSyncActionSet>();
|
||||||
app.add_systems(
|
app.add_systems(
|
||||||
PreUpdate,
|
PreUpdate,
|
||||||
sync_sets.run_if(session_running), // .in_set(OxrPreUpdateSet::SyncActions),
|
sync_sets.in_set(ActionSetSyncSet).run_if(session_running), // .in_set(OxrPreUpdateSet::SyncActions),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user