UI elements become permanently selected with the rectangular selection box

When working on UI, some elements become permanently selected with the rectangular selection box.
A way to reproduce is to inspect a element and click on StarterGui.

Also, UI selection doesn’t work on SurfaceGUI unless you delete it and undo it - then it gets permanently stuck.

This has been happening since around Thursday last week. Users in Guilded were talking about it in the lounge on Friday.

Expected behavior

The UI should select in the viewer when selecting elements in explorer and they should de-select upon de-select.

A private message is associated with this bug report

24 Likes

This has been a bug for such a long time.

I’m glad someone FINALLY reported this, goodness…

Yeah this is extremely annoying, sometimes the selection box goes away if you hover over the part affected, but that’s only sometimes.

7 Likes

Thanks for the report! I filed a ticket in our internal database and we’ll follow up when we have an update for you.

4 Likes

Appears to be fixed for the last couple of days, hooray!

2 Likes

Unfortunately I’m still having this issue. It stopped for a while but it appears to be present again.

(Top TextLabel is currently selected, but the selection box remains on the bottom one)

2 Likes

Hello, I found a way to reproduce this issue:

  1. Create a ScreenGui in StarterGui
  2. Create one TextLabel, and create another one by duplicating the original one
  3. While the duplicated TextLabel is selected, set the Position of it to {0, 0},{0, 50}
  4. Select the original TextLabel
  5. Press Esc to deselect the TextLabel
  6. Notice the persistent selection box on the duplicated TextLabel
2 Likes

Here’s a video in case my explanation was not enough:

4 Likes

Never mind, the same bug is back now.

4 Likes

Still happening to me, its been happening for a long time now

2 Likes

We’ve identified a recent cause for this issue and we’re working on a fix. We will keep you posted.

7 Likes

Thanks!

I found an easier way to reproduce the bug:

  • Select any UI element using right-click → “Select UI Layer”
  • Then, select any other UI element through the explorer

I’m sure this was already known but just in case :smile:

1 Like

This bug has been bugging me (ha) so I decided to make a temporary fix until it is officially fixed.

local Selection = game:GetService("Selection") 
local StarterGui = game:GetService("StarterGui")

local function fixSelections()
	local currentSelection = Selection:Get()

	Selection:Set(StarterGui:GetDescendants())
	Selection:Set({})

	Selection:Set(currentSelection)
end

fixSelections()

Paste that into the command bar when you want the bugged selections to go away.

Since Idk which selection is bugged I simply select everything in StarterGui, deselect it, and then select what you originally had selected. Which is a hacky way to fix this particular selection bug.

Made a quick plugin for this as well:

Edit: If you want to also include workspace for Surface guis:

local Selection = game:GetService("Selection") 
local StarterGui = game:GetService("StarterGui")

local function fixSelections()
	local currentSelection = Selection:Get()

	Selection:Set(StarterGui:GetDescendants())
	Selection:Set({})
	
	local objects = game.Workspace:GetDescendants()
	local objectsToSelect = {}
	for _, object in objects do
		if object:IsA("GuiBase") then
			table.insert(objectsToSelect, object)
		end
	end
	
	Selection:Set(objectsToSelect)
	Selection:Set({})

	Selection:Set(currentSelection)
end

fixSelections()
4 Likes

We just released a fix for this bug. Selection through the Explorer should be working correctly now.

4 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.