pub fn publish_viewport(viewport: Option<Res<'_, Viewport>>)Expand description
Copy the main world’s Viewport into the cache whenever it changes,
so window.size() and window.dpr() read what the app is running at.
Registered by App::new at the start of each tick, ahead of every
script handler.