From 11bf9442e1167a7ad86d5246836e69827a16bf72 Mon Sep 17 00:00:00 2001 From: Schmarni Date: Sun, 19 Oct 2025 23:13:05 +0200 Subject: [PATCH] fix(bevy_xr_utils/example): fix tracking utils example Signed-off-by: Schmarni --- crates/bevy_xr_utils/examples/transform_utils.rs | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/crates/bevy_xr_utils/examples/transform_utils.rs b/crates/bevy_xr_utils/examples/transform_utils.rs index c6c3f2e..576003b 100644 --- a/crates/bevy_xr_utils/examples/transform_utils.rs +++ b/crates/bevy_xr_utils/examples/transform_utils.rs @@ -3,9 +3,8 @@ use bevy::prelude::*; use bevy_mod_openxr::add_xr_plugins; use bevy_xr_utils::transform_utils::{self, SnapToPosition, SnapToRotation}; -use bevy_xr_utils::xr_utils_actions::{ - ActiveSet, XRUtilsAction, XRUtilsActionSet, XRUtilsActionState, XRUtilsActionSystems, - XRUtilsActionsPlugin, XRUtilsBinding, +use bevy_xr_utils::actions::{ + ActionType, ActiveSet, XRUtilsAction, XRUtilsActionSet, XRUtilsActionState, XRUtilsActionSystems, XRUtilsActionsPlugin, XRUtilsBinding }; fn main() -> AppExit { @@ -104,7 +103,7 @@ fn create_action_entities(mut commands: Commands) { XRUtilsAction { action_name: "face_red".into(), localized_name: "face_red_localized".into(), - action_type: bevy_mod_xr::actions::ActionType::Bool, + action_type: ActionType::Bool, }, FaceRedAction, //lets try a marker component )) @@ -128,7 +127,7 @@ fn create_action_entities(mut commands: Commands) { XRUtilsAction { action_name: "center".into(), localized_name: "center_localized".into(), - action_type: bevy_mod_xr::actions::ActionType::Bool, + action_type: ActionType::Bool, }, Center, //lets try a marker component )) @@ -150,7 +149,7 @@ fn create_action_entities(mut commands: Commands) { fn send_look_at_red_cube_event( mut action_query: Query<&XRUtilsActionState, With>, - mut event_writer: EventWriter, + mut event_writer: MessageWriter, ) { //now for the actual checking for state in action_query.iter_mut() { @@ -175,7 +174,7 @@ pub struct Center; fn send_recenter( mut action_query: Query<&XRUtilsActionState, With
>, - mut event_writer: EventWriter, + mut event_writer: MessageWriter, ) { //now for the actual checking for state in action_query.iter_mut() {