您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
15 行
599 B
15 行
599 B
namespace UnityEditor.Experimental.Rendering.HDPipeline
|
|
{
|
|
partial class HDReflectionProbeEditor
|
|
{
|
|
void InitializeTargetProbe()
|
|
{
|
|
// For an unknown reason, newly created probes sometype have the type "Quad" (value = 1)
|
|
// This type of probe is not supported by Unity since 5.4
|
|
// But we need to force it here so it does not bake into a 2D texture but a Cubemap
|
|
serializedObject.Update();
|
|
serializedObject.FindProperty("m_Type").intValue = 0;
|
|
serializedObject.ApplyModifiedProperties();
|
|
}
|
|
}
|
|
}
|