Trait bevy::gizmos::AppGizmoBuilder
source · pub trait AppGizmoBuilder {
// Required methods
fn init_gizmo_group<T>(&mut self) -> &mut Self
where T: GizmoConfigGroup + Default;
fn insert_gizmo_group<T>(
&mut self,
group: T,
config: GizmoConfig
) -> &mut Self
where T: GizmoConfigGroup;
}
Expand description
A trait adding init_gizmo_group<T>()
to the app
Required Methods§
sourcefn init_gizmo_group<T>(&mut self) -> &mut Selfwhere
T: GizmoConfigGroup + Default,
fn init_gizmo_group<T>(&mut self) -> &mut Selfwhere
T: GizmoConfigGroup + Default,
Registers GizmoConfigGroup
T
in the app enabling the use of Gizmos<T>.
Configurations can be set using the GizmoConfigStore
Resource
.
sourcefn insert_gizmo_group<T>(&mut self, group: T, config: GizmoConfig) -> &mut Selfwhere
T: GizmoConfigGroup,
fn insert_gizmo_group<T>(&mut self, group: T, config: GizmoConfig) -> &mut Selfwhere
T: GizmoConfigGroup,
Insert the GizmoConfigGroup
in the app with the given value and GizmoConfig
.
This method should be preferred over AppGizmoBuilder::init_gizmo_group
if and only if you need to configure fields upon initialization.
Object Safety§
This trait is not object safe.