We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Support overriding egui cursor default mapping to SystemCursorIcon with custom bevy_winit CursorIcon (e.g. Image)
The text was updated successfully, but these errors were encountered:
Best workaround I've found in the meantime is to have my own system run just after process_output_system:
process_output_system
// ... .add_systems(PostUpdate, custom_cursor.after(process_output_system)) // ... fn custom_cursor(mut primary_query: Query<&mut CursorIcon, With<PrimaryWindow>>, asset_server: Res<AssetServer>) { let Ok(mut cursor_icon) = primary_query.get_single_mut() else { return; }; if let CursorIcon::System(_system_icon) = cursor_icon.as_ref() { *cursor_icon = CursorIcon::Custom(CustomCursor::Image { handle: asset_server.load("ui/arrow.png"), hotspot: (0, 0), }); } }
Sorry, something went wrong.
No branches or pull requests
Support overriding egui cursor default mapping to SystemCursorIcon with custom bevy_winit CursorIcon (e.g. Image)
The text was updated successfully, but these errors were encountered: