switch From2DTo3D
fun switchFrom2DTo3D(cameraNode: CameraNode, cameraConfiguration: CameraConfiguration = CameraConfiguration())
This function is called when the user switches from 2D to 3D or vice versa. It is responsible for switching the camera from 2D to 3D view mode and vice versa.
Parameters
camera Node
the camera node in the scene view component that contains the 3D scene
camera Configuration
the camera configuration object that contains information about the camera configuration