pub trait SetViewVisibility {
// Required method
fn set_visible(&mut self);
}Required Methods§
Sourcefn set_visible(&mut self)
fn set_visible(&mut self)
Sets the visibility to true if not already visible, triggering change detection only when
needed. This should not be considered reversible for a given frame, as this component tracks
if the entity is visible in any view.
You should only manually set this if you are defining a custom visibility system,
in which case the system should be placed in the CheckVisibility set.
For normal user-defined entity visibility, see Visibility.