docs.unity3d.com
    Show / Hide Table of Contents

    Enum VirtualMouseInput.CursorMode

    Determines how the cursor for the virtual mouse is represented.

    Namespace: UnityEngine.InputSystem.UI
    Syntax
    public enum CursorMode : int

    Fields

    Name Description Value
    SoftwareCursor

    The cursor is represented as a UI element. See cursorGraphic.

    0
    HardwareCursorIfAvailable

    If a native Mouse device is present, its cursor will be used and driven by the virtual mouse using WarpCursorPosition(Vector2). The software cursor referenced by cursorGraphic will be disabled.

    Note that if no native Mouse is present, behavior will fall back to SoftwareCursor.

    1
    In This Article
    • Fields
    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