setFieldOfView method

void setFieldOfView({
  1. required double angle,
  2. double distortionRatio = 1.0,
})

Sets the field of view on the scene view in degrees and determines how much the vertical field of view is distorted.

A distortion ratio less than 1.0 will cause the visuals to be stretched taller in comparison to their width. A distortion ratio greater than 1.0 will cause the visuals to be shrunk shorter in comparison to their width. The default distortion ratio is 1.0.

Parameters:

  • angle — The field of view on the scene view in degrees. This value must be greater than 0 and less than or equal to 120.
  • distortionRatio — The field of view vertical distortion ratio. This value must be between 0.1 and 10.