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

API: scripting
Project: Inno.Editor.Interactions
Scope: Editor

public static float InnoEditor.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.