Make an editor tool that will toggle the game view & do your logic. Rebind it to a shortcut to replace G