File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 7
7
public class AdjustEditor : MonoBehaviour {
8
8
9
9
static string iOSBuildPath = "" ;
10
+ static bool isEnabled = true ;
10
11
11
12
[ PostProcessBuild ]
12
13
public static void OnPostprocessBuild ( BuildTarget target , string pathToBuiltProject ) {
14
+ if ( ! isEnabled ) {
15
+ return ;
16
+ }
17
+
13
18
var exitCode = RunPostBuildScript ( preBuild : false , pathToBuiltProject : pathToBuiltProject ) ;
14
19
15
20
if ( exitCode == - 1 ) {
@@ -62,6 +67,15 @@ static void SetiOSBuildPath() {
62
67
#endif
63
68
}
64
69
70
+ [ MenuItem ( "Adjust/Change post processing status" ) ]
71
+ static void ChangePostProcessingStatus ( ) {
72
+ isEnabled = ! isEnabled ;
73
+ EditorUtility . DisplayDialog ( "Adjust" ,
74
+ "The post processing for adjust is now " +
75
+ ( isEnabled ? "enabled." : "disabled." ) ,
76
+ "OK" ) ;
77
+ }
78
+
65
79
static int RunPostBuildScript ( bool preBuild , string pathToBuiltProject = "" ) {
66
80
string pathToScript = null ;
67
81
string arguments = null ;
You can’t perform that action at this time.
0 commit comments