SampleDistanceToWaterEdge#
SampleDistanceToWaterEdge(Vector3, out float)
#
Sample water edge distance.
Only call once per frame.
Declaration#
public bool SampleDistanceToWaterEdge(Vector3 position, out float distance)
Parameters#
position |
World space position to sample. |
distance |
Filled by the distance to water edge at the query position. |
Return#
Whether the query was successful.