private void ShowPlatformSettings()
{
BuildPlatform[] validPlatforms = GetBuildPlayerValidPlatforms();
if (validPlatforms.Length > 0)
{
GUILayout.Label("Platform settings", EditorStyles.boldLabel);
int platformIndex = EditorGUILayout.BeginPlatformGrouping(validPlatforms, null);
if (validPlatforms[platformIndex].name == BuildPipeline.GetEditorTargetName())
{
ShowEditorSettings();
}
else
{
BuildTargetGroup targetGroup = validPlatforms[platformIndex].targetGroup;
if (targetGroup == BuildTargetGroup.Standalone)
{
desktopExtension.OnPlatformSettingsGUI(this);
}
else
{
IPluginImporterExtension extension = ModuleManager.GetPluginImporterExtension(targetGroup);
if (extension != null)
{
extension.OnPlatformSettingsGUI(this);
}
}
}
EditorGUILayout.EndPlatformGrouping();
}
}