More control over GuiService.SelectedObject customization

Hi guys,

So for my menu I want to make my gui expand its icons when they become selected, instead of adding a selection box overlay.

At the moment, I don’t think this is possible on controllers, but I wanted to ask the community first and if nobody has anything I’ll make a feature request.

Here’s an exaple of what I’d like my gui to sort of resemble:

Here is my actual gui working as intended with a mouse cursor:

Obviously you wouldn’t usually see that selection box right there but I was in a testing server and didn’t feel like taking it out.

I would just bind each button to a guiService event that fires whenever the SelectedObject changes, but unfortunately there is no such event, so the only way I could think to do it now would be using a costly while loop.

If anyone knows of any clever ways of making XBOX guis better, let me know, I’m all ears :slight_smile:


1 Like

Perhaps just do what you are doing now but change the z-index so the selected item is on top of the rest.
Nice UI btw.

Have you tried GetPropertyChangedSignal(“SelectedObject”)?

Moreover, this might be more appropriate:


Like buildthomas pointed out, you are suppose to use SelectionGained and SelectionLost for game pads. Likewise, use SelectionImage to replace bounding boxes on UI elements.

I’m not sure why I didn’t think of this haha, I use it all the time for frames and their visibility property. SelectionGained and SelectionLost seem to have done the trick, thanks!