Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

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

Discussion in 'Documentation' started by JoeAN, Jul 2, 2023.

  1. JoeAN

    JoeAN

    Joined:
    Jun 29, 2016
    Posts:
    4
    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.
     
  2. VicCooper

    VicCooper

    Unity Technologies

    Joined:
    Apr 17, 2020
    Posts:
    1
    Hi JoeAN,

    Thank you for flagging these outdated names. I'll update the documentation to fix them :)
     
    JoeAN likes this.
  3. btqwrk

    btqwrk

    Joined:
    Apr 21, 2023
    Posts:
    1
    Actual lifesaver! Spent the better part of 2 days trying to find anything related to this specific issue.
     
    JoeAN likes this.