PlayerSettings.GetIcons not working in Unity 6

I’m targeting Windows Standalone on Unity 6000.0.31f1.

PlayerSettings.GetIcons() does not return any icons for me when I call this method in an editor script. This is independent of whether there is an icon assigned as the “Default Icon”, or whether one or multiple icons are assigned via “Overrides for Windows, Mac, Linux”
(Same for GetIconSizes())


image

This was working fine in earlier Unity versions like 2023