switchFrom2DTo3D

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

cameraNode

the camera node in the scene view component that contains the 3D scene

cameraConfiguration

the camera configuration object that contains information about the camera configuration