File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 11using System . Linq ;
2- using UniTools . Build ;
32using UnityEditor ;
43using UnityEngine ;
54
@@ -9,6 +8,7 @@ public abstract class ScriptableBuildStepWithOptions : ScriptablePlatformBuildSt
98 {
109 [ SerializeField ] private PathProperty m_path = default ;
1110 [ SerializeField ] private bool m_developmentBuild = false ;
11+ [ SerializeField ] private bool m_cleanBuildCache = false ;
1212
1313 protected BuildPlayerOptions Options
1414 {
@@ -25,6 +25,11 @@ protected BuildPlayerOptions Options
2525 buildPlayerOptions . options = BuildOptions . Development ;
2626 }
2727
28+ if ( m_cleanBuildCache )
29+ {
30+ buildPlayerOptions . options |= BuildOptions . CleanBuildCache ;
31+ }
32+
2833 return buildPlayerOptions ;
2934 }
3035 }
Original file line number Diff line number Diff line change 11{
22 "displayName" : " UniTools.Build" ,
33 "name" : " com.unitools.build" ,
4- "version" : " 0.0.4 -preview" ,
4+ "version" : " 0.0.5 -preview" ,
55 "unity" : " 2019.1" ,
66 "description" : " Customizable Build Pipeline for Unity3D" ,
77 "keywords" : [
You can’t perform that action at this time.
0 commit comments