#Retrieve window size from a system
4 messages · Page 1 of 1 (latest)
The WindowDescriptor settings have been moved from a resource to WindowPlugin:
IIRC that descriptor was never supposed to be used by systems afterwards - it was for plugin config
Something like rs pub fn create_board( mut commands: Commands, windows: Res<Windows>, ... ) { let max_width = windows.primary().width() / width as f32;