Expand description
A 3D transformation Gizmo for the Bevy game engine.
transform-gizmo-bevy provides a feature-rich and configurable 3D transformation gizmo that can be used to manipulate entities’ transforms (position, rotation, scale) visually.
§Usage
Add TransformGizmoPlugin
to your App.
ⓘ
use bevy::prelude::*;
use transform_gizmo_bevy::prelude::*;
App::new()
.add_plugins(DefaultPlugins)
.add_plugins(TransformGizmoPlugin)
.run();
Add GizmoCamera
component to your Camera entity.
Add GizmoTarget
component to any of your entities that you would like to manipulate the Transform
of.
§Configuration
You can configure the gizmo by modifying the GizmoOptions
resource.
You can either set it up with App::insert_resource
when creating your App, or at any point in a system with ResMut<GizmoOptions>
.
Modules§
Macros§
- enum_
set - Creates a EnumSet literal, which can be used in const contexts.
Structs§
- Color32
- This format is used for space-efficient color representation (32 bits).
- EnumSet
- An efficient set type for enums.
- Gizmo
- A 3D transformation gizmo.
- Gizmo
Camera - Marker used to specify which camera to use for gizmos.
- Gizmo
Config - Configuration of a gizmo.
- Gizmo
Drag Started - Gizmo
Dragging - Gizmo
Draw Data - Data used to draw
Gizmo
. - Gizmo
Hotkeys - Hotkeys for easier interaction with the gizmo.
- Gizmo
Interaction - Information needed for interacting with the gizmo.
- Gizmo
Options - Various options for configuring the transform gizmos.
- Gizmo
Target - Marks an entity as a gizmo target.
- Gizmo
Visuals - Controls the visual style of the gizmo
- Pos2
- A position on screen.
- Rect
- A rectangular region of space.
- Transform
Gizmo Plugin - Adds transform gizmos to the App.
Enums§
- Gizmo
Direction - Gizmo
Mode - Operation mode of a gizmo.
- Gizmo
Orientation - Orientation of a gizmo.
- Gizmo
Result - Result of a gizmo transformation