Skip to content

Commit a1a968b

Browse files
committed
* Added Editor code under #if statement
1 parent 9fcace0 commit a1a968b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Travis/TravisBuild.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using UnityEditor;
1+
#if UNITY_EDITOR
2+
using UnityEditor;
23
using UnityEngine;
34

45
public static class RunTravisBuild
@@ -29,3 +30,4 @@ static public void Linux()
2930
BuildPipeline.BuildPlayer(BuildScenes, Application.dataPath + "TestBuildLinux", BuildTarget.StandaloneLinux64, BuildOptions.None);
3031
}
3132
}
33+
#endif

0 commit comments

Comments
 (0)