docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method ProjectPointOnWaterSurface

    ProjectPointOnWaterSurface(WaterSearchParameters, out WaterSearchResult)

    Function that attempts to evaluate the projection of a given world space position onto the water surface. This requires the HDRP asset and the water surface to have script interactions enabled.

    Declaration
    public bool ProjectPointOnWaterSurface(WaterSearchParameters wsp, out WaterSearchResult wsr)
    Parameters
    Type Name Description
    WaterSearchParameters wsp

    The water simulation search parameters that defines the location we are targeting and additional parameters.

    WaterSearchResult wsr

    The water simulation search result that contains the result position, error, etc.

    Returns
    Type Description
    bool

    A boolean that defines if the function was able to execute the evaluation.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)