docs.unity3d.com
    Show / Hide Table of Contents

    Class EditorWindowSpaceProcessor

    If Unity is currently in an callback, transforms a 2D coordinate from player window space into window space of the current EditorWindow.

    Inheritance
    Object
    InputProcessor
    InputProcessor<Vector2>
    EditorWindowSpaceProcessor
    Inherited Members
    InputProcessor<Vector2>.ProcessAsObject(Object, InputControl)
    InputProcessor<Vector2>.Process(Void*, Int32, InputControl)
    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 request.

    Outside of callbacks, this processor does nothing and just passes through the coordinates it receives.

    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 EditorWindow space.

    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.

    See Also

    position
    In This Article
    • Methods
      • Process(Vector2, InputControl)
    • See Also
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023