window::Cursor does not support ..default() initialization pattern #7941
Labels
A-Windowing
Platform-agnostic interface layer to run your app in
C-Usability
A targeted quality-of-life change that makes Bevy easier to use
X-Controversial
There is active debate or serious implications around merging this PR
Bevy version
0.10.0
What you did
What went wrong
This section errors because Cursor.physical_position is private even though everything else is public. This makes the
..default()
initialization pattern not work because it can't set the physical_position field.Additional information
Workaround:
This workaround is quite compact and just fine honestly, though the current behavior is a bit unexpected considering how many other struct initializations work for Bevy users.
The text was updated successfully, but these errors were encountered: