Reproduction steps:
1. Open the “WaterSurfaceIssue“ project
2. Open the “Main” scene
3. Select the “Water” GameObject
4. Expand the “Water Surface” component in Inspector
Expected result: The component is drawn correctly and there are no errors in Console
Actual result: The component overlaps other Inspector elements and multiple NullReferenceExeptions are in Console
Reproduced in: 2022.3.0f1, 2022.3.4f1, 2023.1.1f1, 2023.2.0a21
Could not test in: 2021.3.27f1 (no “Water Surface” component)
Reproduced using: Linux (by the reporter), macOS 13.4 (Intel)
First few lines of the error (full error in internal notes):
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.Rendering.HighDefinition.WaterSurfaceEditor.WaterSurfaceGeneralSection (UnityEditor.Rendering.HighDefinition.WaterSurfaceEditor serialized, UnityEditor.Editor owner) (at ./Library/PackageCache/com.unity.render-pipelines.high-definition@14.0.8/Editor/Water/WaterSurfaceEditor.cs:365)
Note: Not reproduced when in “Project Settings > Graphics” a Default Render Pipeline Asset is selected