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.
| Type | Effect |
|---|---|
| Damping | Calms the waves (harbours, coves) |
| Height Modify (Experimental) | Raises or lowers the water by up to Max Height |
| Flow Current | A current (Max Speed m/s along the zone’s Z) that carries foam and floaters |
| Foam | Painted 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
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.
Screenshot: the same layout with Type “Height Modify (Experimental)” and Max Height 0.
Screenshot: Type “Flow Current”, Max Speed 2, Edge Fade 0.05.
Screenshot: Type “Foam”, Strength slider 1.
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.
Screenshot: the same view with a selected Height Modify zone.
Zone Painter
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
| Symptom | Cause | Fix |
|---|---|---|
| No effect on a body | Only These Bodies excludes it | Empty the list or add the body |
| Affects every body | Layer mask too broad | List bodies explicitly |
| Hard line at the edge | Mask too sharp | Paint softer falloff / Edge Fade |
| Current doesn’t move floaters | Zone is Damping | Use Flow Current |
| Painted foam invisible | Black mask or Strength 0 | Paint white, raise Strength |