protected void OnGUI() { GUILayout.Label("Platforms", "OL title", new GUILayoutOption[0]); GUILayout.BeginHorizontal(); BuildConfigs.BuildWindows = GUILayout.Toggle(BuildConfigs.BuildWindows, windowsIcon.image, "Button"); BuildConfigs.BuildMacOsX = GUILayout.Toggle(BuildConfigs.BuildMacOsX, macOSIcon.image, "Button"); BuildConfigs.BuildLinux = GUILayout.Toggle(BuildConfigs.BuildLinux, linuxIcon.image, "Button"); BuildConfigs.BuildAndroid = GUILayout.Toggle(BuildConfigs.BuildAndroid, androidIcon.image, "Button"); BuildConfigs.BuildIOS = GUILayout.Toggle(BuildConfigs.BuildIOS, iOSIcon.image, "Button"); BuildConfigs.BuildWebGL = GUILayout.Toggle(BuildConfigs.BuildWebGL, webGLIcon.image, "Button"); GUILayout.EndHorizontal(); GUILayout.Label("Folder", "OL title", new GUILayoutOption[0]); pathSelector.Path = BuildConfigs.path ?? Path.GetFullPath("./Builds/"); pathSelector.DoLayout(GUILayout.ExpandWidth(true)); BuildConfigs.path = pathSelector.Path.Replace("\\", "/"); GUILayout.Label("Information", "OL title", new GUILayoutOption[0]); GUILayout.BeginHorizontal(); { GUILayout.BeginVertical("Box"); { PlayerSettings.displayResolutionDialog = (ResolutionDialogSetting)EditorGUILayout.EnumPopup("Startup", PlayerSettings.displayResolutionDialog); PlayerSettings.productName = EditorGUILayout.TextField("Game Name", PlayerSettings.productName); PlayerSettings.companyName = EditorGUILayout.TextField("Author", PlayerSettings.companyName); PlayerSettings.Android.bundleVersionCode = EditorGUILayout.IntField("Version number", PlayerSettings.Android.bundleVersionCode); PlayerSettings.applicationIdentifier = EditorGUILayout.TextField("Package name", PlayerSettings.applicationIdentifier); PlayerSettings.SetApplicationIdentifier(BuildTargetGroup.Standalone, PlayerSettings.applicationIdentifier); PlayerSettings.SetApplicationIdentifier(BuildTargetGroup.Android, PlayerSettings.applicationIdentifier); PlayerSettings.SetApplicationIdentifier(BuildTargetGroup.iOS, PlayerSettings.applicationIdentifier); PlayerSettings.SetApplicationIdentifier(BuildTargetGroup.WebGL, PlayerSettings.applicationIdentifier); Controller.Instance.AdventureData.setApplicationIdentifier(PlayerSettings.applicationIdentifier); } GUILayout.EndVertical(); } GUILayout.EndHorizontal(); GUILayout.FlexibleSpace(); GUILayout.BeginHorizontal(); if (GUILayout.Button("Cancelar")) { Close(); } if (GUILayout.Button("Exportar")) { var exportConfig = BuildConfigs.Instanciate(); Close(); OnConfigSelected(this, new ExportConfigSelectedEventArgs(exportConfig)); } GUILayout.EndHorizontal(); }