Skip to content

Commit

Permalink
Added a reference to set_canvas_from_selector in the canvas field d…
Browse files Browse the repository at this point in the history
…ocumentation.
  • Loading branch information
anlumo committed Oct 3, 2022
1 parent d491071 commit 4de1fdc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/bevy_window/src/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -868,6 +868,8 @@ pub struct WindowDescriptor {
/// The canvas element.
///
/// If set, this canvas element will be used, rather than creating a new one.
///
/// See [WindowDescriptor::set_canvas_from_selector] to set it via a CSS selector.
#[cfg(target_arch = "wasm32")]
pub canvas: Option<Canvas>,
/// Whether or not to fit the canvas element's size to its parent element's size.
Expand Down

0 comments on commit 4de1fdc

Please sign in to comment.