Events#

Query Events#

The purpose of this component is to provide Unity Events for a scriptless approach to triggering changes using water information from queries.

It can perform the following:

  • Above/Below Water: invoke a UnityEvent when the attached game object is above or below the water surface - once per state change. A common use case is to use it to trigger different audio when above or below the surface.

  • Distance From Surface: Constantly sends the vertical distance from the water surface. Can be used to fade in and out audio.

  • Distance From Edge: Constantly sends the horizontal distance from the water’s edge. Can be used to fade in and out shoreline audio.