|
|
|
|
|
|
using UnityEngine.Serialization; |
|
|
|
using UnityEngine.Rendering; |
|
|
|
using UnityEngine.Assertions; |
|
|
|
|
|
|
|
namespace UnityEngine.Experimental.Rendering.HDPipeline |
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
public void OnAfterDeserialize() |
|
|
|
{ |
|
|
|
Assert.IsNotNull(influenceVolume, "influenceVolume must have an instance at this point. See HDProbe.Awake()"); |
|
|
|
if (m_Version != currentVersion) |
|
|
|
{ |
|
|
|
// Add here data migration code
|
|
|
|
|
|
|
} |
|
|
|
m_Version = currentVersion; |
|
|
|
} |
|
|
|
|
|
|
|
influenceVolume.boxBlendNormalDistanceNegative = Vector3.zero; |
|
|
|
influenceVolume.boxBlendNormalDistancePositive = Vector3.zero; |
|
|
|
} |
|
|
|
} |
|
|
|
} |