Trait bevy_gizmos::AppGizmoBuilder

source ·
pub trait AppGizmoBuilder {
    // Required methods
    fn init_gizmo_group<Config: GizmoConfigGroup>(&mut self) -> &mut Self;
    fn insert_gizmo_config<Config: GizmoConfigGroup>(
        &mut self,
        group: Config,
        config: GizmoConfig
    ) -> &mut Self;
}
Expand description

A extension trait adding App::init_gizmo_group and App::insert_gizmo_config.

Required Methods§

source

fn init_gizmo_group<Config: GizmoConfigGroup>(&mut self) -> &mut Self

Registers GizmoConfigGroup in the app enabling the use of Gizmos<Config>.

Configurations can be set using the GizmoConfigStore Resource.

source

fn insert_gizmo_config<Config: GizmoConfigGroup>( &mut self, group: Config, config: GizmoConfig ) -> &mut Self

Insert a GizmoConfig into a specific GizmoConfigGroup.

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.

Implementations on Foreign Types§

source§

impl AppGizmoBuilder for App

source§

fn init_gizmo_group<Config: GizmoConfigGroup>(&mut self) -> &mut Self

source§

fn insert_gizmo_config<Config: GizmoConfigGroup>( &mut self, group: Config, config: GizmoConfig ) -> &mut Self

Implementors§