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. |