Synced
EditorViewportToolContext.ScreenToWorld
Section titled “EditorViewportToolContext.ScreenToWorld”
- Converts viewport-local pixel coordinates to world coordinates.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Editor.Interactions
Declaration
Section titled “Declaration”public Inno.Core.Mathematics.Vector2 Inno.Editor.Interactions.EditorViewportToolContext.ScreenToWorld(Inno.Core.Mathematics.Vector2 screenPosition)Parameters
Section titled “Parameters”Parameter screenPosition: Viewport-local pixel coordinates.
Returns
Section titled “Returns”World coordinates.