Method CorrectCinemachineOrthoSize
CorrectCinemachineOrthoSize(float)
Find a pixel-perfect orthographic size as close to targetOrthoSize as possible. Used by Cinemachine to solve compatibility issues with Pixel Perfect Camera.
Declaration
public float CorrectCinemachineOrthoSize(float targetOrthoSize)
Parameters
Type | Name | Description |
---|---|---|
float | targetOrthoSize | Orthographic size from the live Cinemachine Virtual Camera. |
Returns
Type | Description |
---|---|
float | The corrected orthographic size. |