浏览代码

Lauch migration at creation to version

/hdrp-staging
RSlysz 6 年前
当前提交
4a8e1197
共有 3 个文件被更改,包括 15 次插入5 次删除
  1. 16
      com.unity.render-pipelines.high-definition/HDRP/Lighting/Reflection/HDAdditionalReflectionData.cs
  2. 2
      com.unity.render-pipelines.high-definition/HDRP/Lighting/Reflection/HDProbe.cs
  3. 2
      com.unity.render-pipelines.high-definition/HDRP/Lighting/Reflection/Volumes/InfluenceVolume.cs

16
com.unity.render-pipelines.high-definition/HDRP/Lighting/Reflection/HDAdditionalReflectionData.cs


{
needMigrateToHDProbeChild = true;
}
else if (m_Version < (int)Version.UseInfluenceVolume)
if (m_Version < (int)Version.UseInfluenceVolume)
else if (m_Version < (int)Version.MergeEditors)
if (m_Version < (int)Version.MergeEditors)
else
else if(m_Version < (int)Version.Current)
}
internal override void Awake()
{
base.Awake();
//launch migration at creation too as m_Version could not have an
//existance in older version
OnAfterDeserialize();
OnEnable();
}
void OnEnable()

2
com.unity.render-pipelines.high-definition/HDRP/Lighting/Reflection/HDProbe.cs


}
}
internal void Awake()
internal virtual void Awake()
{
if (influenceVolume == null)
influenceVolume = new InfluenceVolume();

2
com.unity.render-pipelines.high-definition/HDRP/Lighting/Reflection/Volumes/InfluenceVolume.cs


// Sphere
[SerializeField, FormerlySerializedAs("m_SphereBaseRadius")]
float m_SphereRadius = 1;
float m_SphereRadius = 3f;
[SerializeField, FormerlySerializedAs("m_SphereInfluenceFade")]
float m_SphereBlendDistance;
[SerializeField, FormerlySerializedAs("m_SphereInfluenceNormalFade")]

正在加载...
取消
保存