StudioService:GetClassIcon() only returns the old icons

https://create.roblox.com/docs/reference/engine/classes/StudioService#GetClassIcon

GetClassIcon only returns the old icons . This does not return custom icons or the new ones for classes.


–MeshPart example. AssetId for the image is: rbxasset://textures/ClassImages.png

Code:

local StudioService = game:GetService("StudioService")
local DisplayIconHolder = Instance.new("ScreenGui", game.StarterGui)
local ClassIcon = Instance.new("ImageLabel", DisplayIconHolder)
ClassIcon.Name = "ClassIcon"
ClassIcon.BackgroundTransparency = 1
ClassIcon.Size = UDim2.new(0,200,0,200)
ClassIcon.Position = UDim2.new(0, 903,0, 397)


local function displayClassIcon(ClassIcon, className)
	for k, v in pairs(StudioService:GetClassIcon(className)) do
		ClassIcon[k] = v -- Set property
	end
end

displayClassIcon(ClassIcon, "MeshPart") -- Replace "MeshPart" with any other class

Post above into Command Bar in Studio.


Expected behavior

I expect that Roblox Studio respects Custom Icons for classes and delivers them first. If not the custom icons then the new Roblox icons for classes.

2 Likes

Same issue

1 Like

Thanks. We filed a ticket to our internal database.

2 Likes

Please follow this topic for updates: Plugins don’t use new icons - Bug Reports / Studio Bugs - Developer Forum | Roblox