Skip to content

Commit eb68410

Browse files
committed
Disable post processing
1 parent 54491fd commit eb68410

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Assets/Editor/AdjustEditor.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,14 @@
77
public class AdjustEditor : MonoBehaviour {
88

99
static string iOSBuildPath = "";
10+
static bool isEnabled = true;
1011

1112
[PostProcessBuild]
1213
public static void OnPostprocessBuild(BuildTarget target, string pathToBuiltProject) {
14+
if (!isEnabled) {
15+
return;
16+
}
17+
1318
var exitCode = RunPostBuildScript (preBuild: false, pathToBuiltProject: pathToBuiltProject);
1419

1520
if (exitCode == -1) {
@@ -62,6 +67,15 @@ static void SetiOSBuildPath() {
6267
#endif
6368
}
6469

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+
6579
static int RunPostBuildScript (bool preBuild, string pathToBuiltProject = "") {
6680
string pathToScript = null;
6781
string arguments = null;

0 commit comments

Comments
 (0)