How would i switch Player Controller

How would i switch Player Controller

default player controller, or debugcameracontroller. need something that detaches from character and allows you to fly around.

Within the paradigm of Unreal Engine you don’t want to change player controllers. If you are looking to debug something you can use the exec command

ToggleDebugCamera

If you actually want the player to fly around, you might want to spawn a DefaultPawn, possess it, and cache a reference to your original pawn so you can possess it again when you are ready.