onScale

fun onScale(cameraNode: CameraNode, cameraConfiguration: CameraConfiguration, scaleGestureDetector: ScaleGestureDetector)

This function is called when the user performs a pinch gesture on the screen. It is responsible for scaling the 3D scene.

Parameters

cameraNode

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

scaleGestureDetector

the scale gesture detector object that detects the scale gesture