Zoom.SetDistance

Method in Zoom

Declaration

public void SetDistance(float distance)

Description

Sets the zoom distance to the given value. The distance will be clamped within the zoom range.

Parameters

distanceThe camera zoom distance.