|
|
|
|
|
|
namespace UnityEngine.Experimental.Rendering.HDPipeline |
|
|
|
{ |
|
|
|
[RequireComponent(typeof(ReflectionProbe))] |
|
|
|
[ExecuteInEditMode] |
|
|
|
|
|
|
|
[SerializeField, FormerlySerializedAs("version")] |
|
|
|
int m_Version; |
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
if (m_Version < 3) |
|
|
|
{ |
|
|
|
MigrateToUseInfluanceVolume(); |
|
|
|
MigrateToHDProbeChild(); |
|
|
|
} |
|
|
|
m_Version = currentVersion; |
|
|
|
} |
|
|
|
|
|
|
void OnEnable() |
|
|
|
{ |
|
|
|
if (needMigrateToHDProbeChild) |
|
|
|
MigrateToUseInfluanceVolume(); |
|
|
|
MigrateToHDProbeChild(); |
|
|
|
|
|
|
|
void OnDisable() |
|
|
|
{ |
|
|
|
influenceVolume.OnSizeChanged -= UpdateLegacySize; |
|
|
|