SelectionObject + ScrollingFrame Problem

So when you move the SelectionObject down with DPad, it scrolls the scrolling frame to be perfectly lined up with the selected object, but if there is an object under it but to the left in a grid, it won’t move down and you wouldn’t even know its there unless you moved all the way to the left.

I realize the way I worded that doesn’t make any sense so hopefully this gif will help, I’m repeatedly clicking DPad Down throughout the gif, on the green knife box it doesn’t go down, and on the purple one it does:

https://i.gyazo.com/8d5c9918717a8ad39047f2211f03bf72.mp4

Is this going to be changed? Is there any solution other than making my own selection code? (I’d really prefer not to)

3 Likes

so the gui selection code does some automatic selection for you, but it does have its constraints. Essentially this works by comparing angle diffs between the selection direction and gui objects nearby. In the case here, the angle diff between the green and red box makes it hard for the system to realize you want to select that. Fortunately for edge cases you can override particular selection paths. Check out NextSelectionDown + Up + Left + Right (these are properties on gui objects). You can set your gui object to override the default selection if you want to fix edge cases.

1 Like

Thank you, I forgot about that feature. However, I tried it out and ran into another problem. It only works if both frames are visible lol. Here is an example:

https://i.gyazo.com/dc694cdd58a7a6c0e1931bfde9aaa039.mp4

You can go from purple to orange when it’s visible, but when I went up, back down onto purple, pressing DPad down did nothing. At this point I think it would be better if ROBLOX did this from the Core side, but only in ScrollingFrames specifically. I can’t imagine a reason for someone not wanting this behavior in a ScrollingFrame.

Still an issue, an darthskrill’s method doesn’t work. I’ve tried manually setting NextSelectionDown and if it’s off-screen due to the ‘ClipsDescendant’ property of ScrollingFrames, it still won’t go down.

3 Likes

Hello, I’m aware of the mega-bump, but this is still an issue. Explicitly setting properties like NextSelectionDown don’t work until the first time the items are visible. So if you have a ScrollFrame, setting NextSelection properties won’t work until the first time the frame is scrolled through.

@darthskrill just bumping for visibility.

11 Likes

I’m also still encountering this, and never found a good solution. Specifically, when an item is clipped in a scrolling frame, I can’t select it with gamepad, in the same way that the above posts describe.

1 Like