How to open Player Settings with an Editor Script?

Is there any way to open player settings inspector (like the player settings button in the build settings); or to at least get the UnityEngine.Object for the player settings so that I can set Selection.objects to it?

Hi,
Try this, EditorApplication.ExecuteMenuItem(“Edit/Project Settings/Player”);

Thanks,
Altaf

In Unity 2018.3 you should be able to do:

SettingsService.OpenProjectSettings("Project/Player");

FYI this no longer works in 2018.3+

You’ll need to use:

Selection.activeObject = Unsupported.GetSerializedAssetInterfaceSingleton("PlayerSettings");

Unity - Scripting API: PlayerSettings?