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