Ghost-scrolling in Unity

Post questions, comments and feedback to our 3Dconnexion Windows Development Team.

Moderator: Moderators

Post Reply
PremierBromanov
Posts: 3
Joined: Thu Feb 14, 2019 1:29 pm

Ghost-scrolling in Unity

Post by PremierBromanov » Thu Feb 14, 2019 2:16 pm

Hey there, We've been trying to solve this bug for awhile and we've narrowed the problem down to the SpaceNavigator plugin for unity.

The issue is that when we try to use scroll-views in Unity (editor and builds), they automatically scroll back up to the top. Clicking on buttons in scroll views shows them sequentially highlighted from bottom to top. Here's a video of this behavior in an empty project https://streamable.com/yzua0 it's worth noting that, even if there is a game-object between separate scroll views, each with their own buttons (such as are in our app), it will still sequentially highlight them from bottom to top, which might be an indicator that it follows game-object hierarchy, since we use vertical layout groups to setup our UI.

I believe the culprit is Base Input script, which we can't access. Clicking anywhere on the Editor GUI resets this behavior for a short time. For example, clearing the logs or clicking the inspector.

You can replicate this bug in an empty project. Import the SpaceNavigator. Then, create a new scene. Create a canvas and add a Scroll View by right clicking on the canvas. In the scroll view object, find the child named Content, add a vertical layout group. Then, child several buttons to the Content object. Give the buttons a highlight color. There should be an event system automatically placed, but if not, be sure to add one. It should also have a BaseInput component. Hit play, click the bottom of the scroll bar, and observe. Click a button and observe.

Hoping there is a fix for this.

UtaSH
Moderator
Moderator
Posts: 3194
Joined: Mon Nov 27, 2006 10:34 am
Location: Munich, Germany
Contact:

Re: Ghost-scrolling in Unity

Post by UtaSH » Tue Feb 19, 2019 3:09 am

Hello PremierBromanov,

if it is a problem with Unity you will have to report the issue to Unity.

PremierBromanov
Posts: 3
Joined: Thu Feb 14, 2019 1:29 pm

Re: Ghost-scrolling in Unity

Post by PremierBromanov » Mon Feb 25, 2019 10:12 am

Hi UtaSH, just to clarify:

I've discovered the problem is with your script (which i can't access), is that still something I should report to unity? I don't know if I would have the right information to report a bug with your asset package.

jwick
Moderator
Moderator
Posts: 2462
Joined: Wed Dec 20, 2006 2:25 pm
Location: USA
Contact:

Re: Ghost-scrolling in Unity

Post by jwick » Tue Feb 26, 2019 1:14 am

What script are you referring to?
What Unity plugin did you install? Where did you get it?

PremierBromanov
Posts: 3
Joined: Thu Feb 14, 2019 1:29 pm

Re: Ghost-scrolling in Unity

Post by PremierBromanov » Wed Feb 27, 2019 9:06 am

The script in question is the BaseInput.cs class, which gets attached to EventSystems automatically. The package is from the asset store https://assetstore.unity.com/packages/t ... river-9774

I had assumed it was your script (maybe its not) since it doesn't get added automatically without the asset package. We've found that even with just the package in our project the ghost-scrolling issue pops up, even if we don't have a mouse plugged in, as long as the BaseInput script is in the scene.

jwick
Moderator
Moderator
Posts: 2462
Joined: Wed Dec 20, 2006 2:25 pm
Location: USA
Contact:

Re: Ghost-scrolling in Unity

Post by jwick » Wed Feb 27, 2019 9:31 am

No, that's not ours. I recall seeing it years ago (or another one like it). It was pretty nice. Really nice in fact.

We do use Unity for one of our demos, so it isn't a generic Unity problem. We don't use that interface.

You'll have to contact the developer. If he needs any help from us he can contact us.
He might have when he did the original development. Someone that did something like this did.

Post Reply