Skip to content

Commit 4e4bbcc

Browse files
Fix scripting light test with enableReflector true by default
1 parent 0881491 commit 4e4bbcc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

com.unity.render-pipelines.high-definition/Runtime/Scripting/GameObjectExtension.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ public static HDAdditionalLightData AddHDLight(this GameObject gameObject, HDLig
1717

1818
HDAdditionalLightData.InitDefaultHDAdditionalLightData(hdLight);
1919

20+
// Reflector have been change to true by default in the UX, however to not break compatibility
21+
// with previous 2020.2 project that use light scripting we must keep reflector to false for scripted light
22+
hdLight.enableSpotReflector = false;
2023
hdLight.SetLightTypeAndShape(lightTypeAndShape);
2124

2225
return hdLight;

0 commit comments

Comments
 (0)