Is it possible to develop mixed platform game...? like switching between orthographic and prespective view?

In my game im trying switch between 2D and 3D world(i,e orthographic and prespective view) during the playtime. The problem what im facing is how to give inputs for 2d and 3D charcter? im very new to unreal, please some one help

You could add 2 cameras as components - one front-facing perspective, the other top-down orthographic and just switch between them with the Activate node when necessary. You could also constrain the camera movement on the XY plane assuming you don’t use the Z axis.

Thanks for the reply.Since I’m very new to unreal can you explain how to freeze the z-depth in orthographic camera.?like how to disable movement forward when camera switching to 3d to 2d
ps: any reference video or link will be great and useful