RSlysz
7 年前
当前提交
eda72143
共有 9 个文件被更改,包括 97 次插入 和 60 次删除
-
2com.unity.render-pipelines.high-definition/HDRP/Editor/Lighting/Reflection/HDReflectionProbeUI.Drawers.cs
-
4com.unity.render-pipelines.high-definition/HDRP/Editor/Lighting/Reflection/PlanarReflectionProbeUI.Drawers.cs
-
30com.unity.render-pipelines.high-definition/HDRP/Editor/Lighting/Reflection/Volume/ProxyVolumeUI.cs
-
12com.unity.render-pipelines.high-definition/HDRP/Editor/Lighting/Reflection/Volume/SerializedProxyVolume.cs
-
15com.unity.render-pipelines.high-definition/HDRP/Lighting/Reflection/PlanarReflectionProbe.cs
-
17com.unity.render-pipelines.high-definition/HDRP/Lighting/Reflection/ProbeWrapper.cs
-
39com.unity.render-pipelines.high-definition/HDRP/Lighting/Reflection/Volumes/ProxyVolume.cs
-
31com.unity.render-pipelines.high-definition/HDRP/Lighting/Reflection/Volumes/ReflectionProxyVolumeComponent.cs
-
7com.unity.render-pipelines.high-definition/HDRP/Lighting/Reflection/Volumes/ShapeType.cs
|
|||
namespace UnityEngine.Experimental.Rendering.HDPipeline |
|||
{ |
|||
public class ReflectionProxyVolumeComponent : MonoBehaviour |
|||
public class ReflectionProxyVolumeComponent : MonoBehaviour, ISerializationCallbackReceiver |
|||
enum Version |
|||
{ |
|||
First, |
|||
IncludeInfiniteInShape, |
|||
// Add new version here and they will automatically be the Current one
|
|||
Max, |
|||
Current = Max - 1 |
|||
} |
|||
|
|||
[SerializeField] |
|||
int m_Version; |
|||
|
|||
|
|||
void ISerializationCallbackReceiver.OnBeforeSerialize() |
|||
{ |
|||
} |
|||
|
|||
void ISerializationCallbackReceiver.OnAfterDeserialize() |
|||
{ |
|||
if (m_Version != (int)Version.Current) |
|||
{ |
|||
// Add here data migration code
|
|||
if (m_Version < (int)Version.IncludeInfiniteInShape) |
|||
{ |
|||
proxyVolume.MigrateInfiniteProhjectionInShape(); |
|||
} |
|||
m_Version = (int)Version.Current; |
|||
} |
|||
} |
|||
} |
|||
} |
撰写
预览
正在加载...
取消
保存
Reference in new issue