Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced
  • Converts wheel input to the common exponential magnification used by Editor canvases.

API: engine
Project: Inno.Editor.Interactions

public static float Inno.Editor.Interactions.EditorPlanarNavigation.WheelFactor(float wheel, float sensitivity = 0.16)

Parameter wheel: Logical wheel units, independent of framebuffer DPI.

Parameter sensitivity: Positive exponential sensitivity.

A finite positive magnification factor; positive wheel magnifies content.

Exception T:System.ArgumentOutOfRangeException: Input is non-finite or sensitivity is not positive.