File tree Expand file tree Collapse file tree 6 files changed +11
-11
lines changed
Packages/com.verasl.water-system/Scripts Expand file tree Collapse file tree 6 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ static void LodLightmapEdit(PlayModeStateChange state)
28
28
29
29
private static void Execute ( )
30
30
{
31
- if ( UniversalRenderPipeline . asset . debugLevel != PipelineDebugLevel . Disabled )
31
+ if ( Debug . isDebugBuild )
32
32
Debug . Log ( "Baking LOD Lightmap values" ) ;
33
33
var lodGroups = Object . FindObjectsOfType < LODGroup > ( ) ;
34
34
foreach ( var lodGroup in lodGroups )
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ public enum SpeedFormat
62
62
// Use this for initialization
63
63
private void Awake ( )
64
64
{
65
- if ( UniversalRenderPipeline . asset . debugLevel == PipelineDebugLevel . Profiling )
65
+ if ( Debug . isDebugBuild )
66
66
Debug . Log ( "AppManager initializing" ) ;
67
67
Initialize ( ) ;
68
68
CmdArgs ( ) ;
@@ -120,7 +120,7 @@ private void SetRenderScale()
120
120
} ;
121
121
var renderScale = Mathf . Clamp ( res / Screen . width , 0.1f , 1.0f ) ;
122
122
123
- if ( UniversalRenderPipeline . asset . debugLevel == PipelineDebugLevel . Profiling )
123
+ if ( Debug . isDebugBuild )
124
124
Debug . Log ( $ "Settings render scale to { renderScale * 100 } % based on { maxRenderSize . ToString ( ) } ") ;
125
125
126
126
maxScale = renderScale ;
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ private void Init()
40
40
41
41
if ( Instance != null && Instance != this )
42
42
{
43
- if ( UniversalRenderPipeline . asset . debugLevel != PipelineDebugLevel . Disabled )
43
+ if ( Debug . isDebugBuild )
44
44
Debug . Log ( $ "Extra Volume Manager cleaned up. GUID:{ gameObject . GetInstanceID ( ) } ") ;
45
45
StopAllCoroutines ( ) ;
46
46
Utility . SafeDestroy ( gameObject ) ;
@@ -49,7 +49,7 @@ private void Init()
49
49
{
50
50
Instance = this ;
51
51
gameObject . name = "[DefaultVolume]" ;
52
- if ( UniversalRenderPipeline . asset . debugLevel != PipelineDebugLevel . Disabled )
52
+ if ( Debug . isDebugBuild )
53
53
Debug . Log ( $ "Default Volume is { gameObject . GetInstanceID ( ) } ") ;
54
54
Utility . QualityLevelChange += UpdateVolume ;
55
55
UpdateVolume ( 0 , Utility . GetTrueQualityLevel ( ) ) ; // First time set
@@ -90,7 +90,7 @@ private IEnumerator LoadAndApplyQualityVolume(int index)
90
90
volQualityComponent . sharedProfile = vol . OperationHandle . Result as VolumeProfile ;
91
91
_loading = false ;
92
92
93
- if ( UniversalRenderPipeline . asset . debugLevel == PipelineDebugLevel . Disabled ) yield break ;
93
+ if ( ! Debug . isDebugBuild ) yield break ;
94
94
Debug . Log ( message : "Updated volumes:\n " +
95
95
$ " Base Volume : { ( volBaseComponent . sharedProfile ? volBaseComponent . sharedProfile . name : "none" ) } \n " +
96
96
$ " Quality Volume : { ( volQualityComponent . sharedProfile ? volQualityComponent . sharedProfile . name : "none" ) } \n " +
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ public static void BoatFinished(int player)
94
94
95
95
private void Awake ( )
96
96
{
97
- if ( UniversalRenderPipeline . asset . debugLevel != PipelineDebugLevel . Disabled )
97
+ if ( Debug . isDebugBuild )
98
98
Debug . Log ( "RaceManager Loaded" ) ;
99
99
Instance = this ;
100
100
}
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ public static void CheckQualityLevel()
18
18
var curLevel = QualitySettings . GetQualityLevel ( ) ;
19
19
if ( lastQualityLevel == curLevel ) return ;
20
20
21
- if ( UniversalRenderPipeline . asset . debugLevel != PipelineDebugLevel . Disabled )
21
+ if ( Debug . isDebugBuild )
22
22
Debug . Log ( $ "Quality level changed:{ lastQualityLevel } to { curLevel } ") ;
23
23
var realIndex = GetTrueQualityLevel ( curLevel ) ;
24
24
QualityLevelChange ? . Invoke ( curLevel , realIndex ) ;
@@ -86,7 +86,7 @@ internal class UtilityScheduler
86
86
static UtilityScheduler ( )
87
87
{
88
88
// setup the things
89
- if ( UniversalRenderPipeline . asset . debugLevel != PipelineDebugLevel . Disabled )
89
+ if ( Debug . isDebugBuild )
90
90
Debug . Log ( "Setting up some utilities" ) ;
91
91
EditorApplication . update += Utility . CheckQualityLevel ;
92
92
}
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ public static class GerstnerWavesJobs
31
31
32
32
public static void Init ( )
33
33
{
34
- if ( UniversalRenderPipeline . asset . debugLevel != PipelineDebugLevel . Disabled )
34
+ if ( Debug . isDebugBuild )
35
35
Debug . Log ( "Initializing Gerstner Waves Jobs" ) ;
36
36
//Wave data
37
37
_waveCount = Water . Instance . _waves . Length ;
@@ -50,7 +50,7 @@ public static void Init()
50
50
51
51
public static void Cleanup ( )
52
52
{
53
- if ( UniversalRenderPipeline . asset . debugLevel != PipelineDebugLevel . Disabled )
53
+ if ( Debug . isDebugBuild )
54
54
Debug . Log ( "Cleaning up Gerstner Wave Jobs" ) ;
55
55
_waterHeightHandle . Complete ( ) ;
56
56
You can’t perform that action at this time.
0 commit comments