File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
crates/bevy_camera_controller/src Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ impl Plugin for PanCamPlugin {
3939#[ derive( Component ) ]
4040pub struct PanCam {
4141 /// Enables this [`PanCam`] when `true`.
42- pub enable : bool ,
42+ pub enabled : bool ,
4343 /// Current zoom level (factor applied to camera scale).
4444 pub zoom_factor : f32 ,
4545 /// Minimum allowed zoom level.
@@ -90,7 +90,7 @@ impl Default for PanCam {
9090 /// or modifying the default instance.
9191 fn default ( ) -> Self {
9292 Self {
93- enable : true ,
93+ enabled : true ,
9494 zoom_factor : 1.0 ,
9595 min_zoom : 0.1 ,
9696 max_zoom : 5.0 ,
@@ -157,7 +157,7 @@ fn run_pancam_controller(
157157 return ;
158158 } ;
159159
160- if !controller. enable {
160+ if !controller. enabled {
161161 return ;
162162 }
163163
You can’t perform that action at this time.
0 commit comments