Tidal 2 URP

Zones (calm, height, current, foam areas)

What it is

TidalZone is a box-shaped area (its transform’s X/Z scale) that changes the water inside it. An optional greyscale Zone Texture shapes it - white = full effect, black = none - painted with TidalZonePainter. Zones are baked into a map around the camera when they change, so many zones cost the same per frame as one.

TypeEffect
DampingCalms the waves (harbours, coves)
Height Modify (Experimental)Raises or lowers the water by up to Max Height
Flow CurrentA current (Max Speed m/s along the zone’s Z) that carries foam and floaters
FoamPainted surface foam

How to add it

GameObject > Tidal 2 > Zone > Damping / Height Modify / Flow Current / Foam. Move and scale it over the area. For quick free-form painting on a body without zone objects, see Edit Water Tools.

In the editor

Damping zone inspector

Screenshot: Tidal Zone with the TIDAL 2 Water System banner. Zone - Type Damping. Texture - Zone Texture None (Texture 2D), Show In Scene (off), a notice “No zone texture is assigned.” and a Create 2048x2048 Zone Texture button. Affects - Layers “Water”, and an empty Only These Bodies list.

Height Modify zone

Screenshot: the same layout with Type “Height Modify (Experimental)” and Max Height 0.

Flow Current zone

Screenshot: Type “Flow Current”, Max Speed 2, Edge Fade 0.05.

Foam zone

Screenshot: Type “Foam”, Strength slider 1.

Flow zone in the Scene view

Screenshot: the Scene view on the ocean surface with a selected 10 x 10 m flow zone at the centre; the transform gizmo marks its position.

Height zone in the Scene view

Screenshot: the same view with a selected Height Modify zone.

Zone Painter

Zone Painter inspector

Screenshot: Tidal Zone Painter with Paint | Blend tabs. Mode - Paint Mode Value. Target Texture (painted directly) - Zone Texture None, Create Size 1024, Create 16 Bit (on). Stroke - Spacing 0.35, Flow 1. Brush - Paint Value 1, Strength 1, Radius UV 0.03, Hardness 0.7. Blend Brush - Blend Passes 3, Blend Kernel Scale 1.2, Blend Amount 1. Depth Bake - Depth Bake Max Distance 50. Scene View - Enable Painting (on), Hold Ctrl To Paint (off). Buttons: Create Texture, Ensure Importer, Clear Black, Clear White, Bake Depth (Camera), Bake Depth (Raycast), Save. Footer: “Assign or create a Texture2D. Painting writes directly to it.”

The painter goes on a GameObject with a Renderer (e.g. a plane over the zone) and paints into the zone texture in the Scene view. Bake Depth fills the mask from the terrain/seabed depth (e.g. calm shallows automatically).

Scoping

Only These Bodies (AffectedBodies) non-empty is exclusive - only listed bodies are affected and the layer mask is ignored. Empty = every body on the selected Layers.

Scripting

if (zone.IsInside(p))
{
    Vector2 current = zone.SampleFlowWorld(p);
    if (zone.SampleHeightWorld(p, out float extra)) { }
    if (zone.SampleDampingWorld(p, out float calm)) { }
}
zone.MarkTextureDirty();          // after editing the texture's pixels from script
Vector2 flow = body.GetWaterFlow(p);   // the combined result

Common issues

SymptomCauseFix
No effect on a bodyOnly These Bodies excludes itEmpty the list or add the body
Affects every bodyLayer mask too broadList bodies explicitly
Hard line at the edgeMask too sharpPaint softer falloff / Edge Fade
Current doesn’t move floatersZone is DampingUse Flow Current
Painted foam invisibleBlack mask or Strength 0Paint white, raise Strength