private void ShowPlatformSettings()
{
BuildPlayerWindow.BuildPlatform[] playerValidPlatforms = this.GetBuildPlayerValidPlatforms();
if (playerValidPlatforms.Length <= 0)
{
return;
}
GUILayout.Label("Platform settings", EditorStyles.boldLabel, new GUILayoutOption[0]);
int index = EditorGUILayout.BeginPlatformGrouping(playerValidPlatforms, (GUIContent)null);
if (playerValidPlatforms[index].name == BuildPipeline.GetEditorTargetName())
{
this.ShowEditorSettings();
}
else
{
BuildTargetGroup targetGroup = playerValidPlatforms[index].targetGroup;
if (targetGroup == BuildTargetGroup.Standalone)
{
this.m_DesktopExtension.OnPlatformSettingsGUI(this);
}
else
{
IPluginImporterExtension importerExtension = ModuleManager.GetPluginImporterExtension(targetGroup);
if (importerExtension != null)
{
importerExtension.OnPlatformSettingsGUI(this);
}
}
}
EditorGUILayout.EndPlatformGrouping();
}