HDRP 14 field and method names used in HDRP 15 Water System Scripting Page

The “Scripting in the Water System” page for HDRP 15 uses field and method names from HDRP 14 in its code snippet. For example:

WaterSystem.FindWaterSurfaceHeight should be replaced by WaterSystem.ProjectPointOnWaterSurface

WaterSearchParameters.startPosition by WaterSearchParameters.startPositionWS

WaterSearchParameters.targetPosition by WaterSearchParameters.targetPositionWS

WaterSearchResult.height by WaterSearchResult.projectedPositionWS.y

This is tested in HDRP 15.0.6, Unity 2023.1.2f1, though the issue might be the same for HDRP 16.
Thank you.

Hi JoeAN,

Thank you for flagging these outdated names. I’ll update the documentation to fix them :slight_smile:

1 Like

Actual lifesaver! Spent the better part of 2 days trying to find anything related to this specific issue.

1 Like