Class EditorWindowSpaceProcessor
If Unity is currently in an
Inherited Members
Namespace: UnityEngine.InputSystem.Processors
Syntax
public class EditorWindowSpaceProcessor : InputProcessor<Vector2>
Remarks
This processor is only available in the editor. Also, it only works on devices that
support the
Outside of
Methods
Process(Vector2, InputControl)
Transform the given player screen-space coordinate into the coordinate space of the current
EditorWindow
.
Declaration
public override Vector2 Process(Vector2 value, InputControl control)
Parameters
Type | Name | Description |
---|---|---|
Vector2 | value | GameView screen space coordinate. |
InputControl | control | Ignored. |
Returns
Type | Description |
---|---|
Vector2 | The given coordinate transformed into |
Overrides
UnityEngine.InputSystem.InputProcessor<Vector2>.Process(Vector2, UnityEngine.InputSystem.InputControl)
Remarks
This method will only succeed if the editor is currently in an EditorWindow
callback such
as OnGUI
.