升级6.4.升级水,升级天气
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
|
||||
using UnityEngine;
|
||||
using UnityEngine.Rendering;
|
||||
using WaveHarmonic.Crest.Internal;
|
||||
|
||||
namespace WaveHarmonic.Crest.Editor
|
||||
{
|
||||
@@ -10,15 +11,16 @@ namespace WaveHarmonic.Crest.Editor
|
||||
[AddComponentMenu("")]
|
||||
#endif
|
||||
[ExecuteAlways]
|
||||
sealed class AmbientLightPatcher : MonoBehaviour
|
||||
sealed class AmbientLightPatcher : CustomBehaviour
|
||||
{
|
||||
[SerializeField, HideInInspector]
|
||||
#pragma warning disable 414
|
||||
int _Version = 0;
|
||||
#pragma warning restore 414
|
||||
|
||||
#if UNITY_EDITOR
|
||||
void OnEnable() => InitializeAmbientLighting();
|
||||
|
||||
private protected override void OnEnable()
|
||||
{
|
||||
base.OnEnable();
|
||||
InitializeAmbientLighting();
|
||||
}
|
||||
|
||||
void Update() => InitializeAmbientLighting();
|
||||
|
||||
bool _Baked;
|
||||
|
||||
Reference in New Issue
Block a user