pub fn ui_for_state<T: StateData + Reflect>(world: &mut World, ui: &mut Ui)
Display state T and change state on edit
T