Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

ScrollView / ScrollRect Scrollbars controlled by directional input - how to disable?

Discussion in 'UGUI & TextMesh Pro' started by aaversa, Sep 9, 2017.

  1. aaversa

    aaversa

    Joined:
    Sep 5, 2016
    Posts:
    41
    Every so often, we get bug reports from players who are using some kind of directional movement (usually arrow keys, but sometimes numpad, which are mapped using Rewired in our game) and unintentionally scrolling around in a ScollRect/ScrollView UI object that is also on the screen.

    I've done absolutely no scripting to connect any kind of directional or keyboard input into scrolling whatsoever, so this seems like behavior that might be native to scrollbars...? However it's really problematic as it happens at random in an unpredictable way.

    I can't find much information on this problem; is it a known bug? Is there a way to remove this behavior, so that the only time scrollbars are EVER moved is via mouse drag/drop?
     
  2. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,227
    Its controlled by the Standalone Input Module
    Just clear the fields.
    upload_2017-9-12_14-34-33.png