Crate bevy_cursor

Source
Expand description

A bevy plugin to track information about the cursor.

  • The entity id of the window on which the cursor is currently;
  • The entity id of the camera on which the cursor is currently;
  • The position of the cursor on the window (logical position);
  • The 2D world position of the cursor (if the feature 2d is enabled);
  • The ray emitted by the cursor through the camera (if the feature 3d is enabled);

§Bevy compatible version

bevybevy_cursor
0.160.6
0.150.5
0.140.4
0.130.3
0.120.2
0.110.1

Modules§

prelude

Structs§

CursorLocation
A resource that provides the Location data of the cursor.
Location
The location of the cursor (its position, window, and camera).
TrackCursorPlugin
This plugin adds support to track the cursor’s position, window, and camera.
UpdateCursorLocation
A SystemSet in which CursorLocation is updated during the First schedule.