Ejemplo n.º 1
0
            public void OnActiveBuildTargetChanged(BuildTarget previous, BuildTarget current)
            {
                Settings.EditorSettings.CleanTemporaryFiles();

                Platform.BinaryType binaryType = EditorUserBuildSettings.development
                    ? Platform.BinaryType.Logging
                    : Platform.BinaryType.Release;

                string error;

                if (!Settings.EditorSettings.CanBuildTarget(current, binaryType, out error))
                {
                    RuntimeUtils.DebugLogWarning(error);

                    if (EditorWindow.HasOpenInstances <BuildPlayerWindow>())
                    {
                        GUIContent message =
                            new GUIContent("FMOD detected issues with this platform!\nSee the Console for details.");
                        EditorWindow.GetWindow <BuildPlayerWindow>().ShowNotification(message, 10);
                    }
                }
            }