setViewpointCameraAnimated

Animates the display to the viewpoint specified by the given camera.

Use SceneView.setViewpointCameraAnimated to set a viewpoint that animates over a specified duration.

Return

A Result containing a boolean value. True if the viewpoint was successfully set. Otherwise, false.

Since

200.1.0

Parameters

camera

the new camera information for the scene view


suspend fun setViewpointCameraAnimated(camera: Camera, duration: Float): Result<Boolean>

Animates the display to the viewpoint specified by the given camera using the specified duration to arrive.

Return

A Result containing a boolean value. True if the viewpoint was successfully set. Otherwise, false.

Since

200.1.0

Parameters

camera

the new camera information for the scene view

duration

the time for the transition animation to complete, in seconds