Search Issue Tracker
Fixed in 13.1.2
Votes
0
Found in [Package]
2022.1.0a16
Issue ID
1383730
Regression
Yes
[HDRP] ArgumentOutOfRangeException thrown after creating new Area Light object after opening ShaderGraph
How to reproduce:
1. Create new HDRP project
2. Create new Shadergraph via Project tab and open it
3. In Hierarchy create new Area Light
4. Observe console
Error:
ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
System.Collections.Generic.List`1[T].get_Item (System.Int32 index) (at <96f838c04c564175a85f709a665a953d>:0)
UnityEngine.Rendering.HighDefinition.HDLightRenderDatabase.EditLightDataAsRef (UnityEngine.Rendering.HighDefinition.HDLightRenderEntity& entity) (at Library/PackageCache/com.unity.render-pipelines.high-definition@13.1.1/Runtime/Lighting/Light/HDLightRenderDatabase.cs:96)
UnityEngine.Rendering.HighDefinition.HDAdditionalLightData.ComputeLightType (UnityEngine.Light attachedLight) (at Library/PackageCache/com.unity.render-pipelines.high-definition@13.1.1/Runtime/Lighting/Light/HDAdditionalLightData.Types.cs:514)
UnityEngine.Rendering.HighDefinition.HDAdditionalLightData.get_type () (at Library/PackageCache/com.unity.render-pipelines.high-definition@13.1.1/Runtime/Lighting/Light/HDAdditionalLightData.Types.cs:233)
UnityEngine.Rendering.HighDefinition.HDAdditionalLightData.UpdateBounds () (at Library/PackageCache/com.unity.render-pipelines.high-definition@13.1.1/Runtime/Lighting/Light/HDAdditionalLightData.cs:3153)
UnityEngine.Rendering.HighDefinition.HDAdditionalLightData.OnValidate () (at Library/PackageCache/com.unity.render-pipelines.high-definition@13.1.1/Runtime/Lighting/Light/HDAdditionalLightData.cs:2851)
UnityEngine.Rendering.HighDefinition.HDAdditionalLightData.Migrate () (at Library/PackageCache/com.unity.render-pipelines.high-definition@13.1.1/Runtime/Lighting/Light/HDAdditionalLightData.Migration.cs:189)
UnityEngine.Rendering.HighDefinition.HDAdditionalLightData.Awake () (at Library/PackageCache/com.unity.render-pipelines.high-definition@13.1.1/Runtime/Lighting/Light/HDAdditionalLightData.cs:2955)
UnityEditor.Rendering.HighDefinition.HDLightEditor:OnEnable() (at Library/PackageCache/com.unity.render-pipelines.high-definition@13.1.1/Editor/Lighting/HDLightEditor.cs:42)
Reproduced with: 2022.1.0a16
Does not reproduce with: 2022.1.0a15
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- EditorGUILayout.PropertyField foldout icon inside Vertical Layout Group has an incorrect indent when used with OnInspectorGUI()
- [Android] [iOS] "NullReferenceException: Object reference not set to an instance of an object" throws when entering the Play Mode/opening the application
- The Player freezes on load when building Web platform
- Animator "Conditions" tab breaks when the only Parameter is deleted and another one is created
- "Shader error in 'Universal Render Pipeline/Lit': maximum ps_5_0 sampler register index (16) exceeded" error thrown after a build is completed when the "LOD Cross Fade" parameter is enabled
Add comment