Subsystems
Subsystems exist once per world (or per game instance) and are created automatically. In Blueprint, get one with its Get node (for example Get DRW Water Time Subsystem), then call its functions.
- DRW_WaterTimeSubsystem (DRW Water Time Subsystem), DRW_WaterSurfaceSubsystem (DRW Water Surface Subsystem), DRW_InteractionSubsystem (DRW Interaction Subsystem), DRW_DebugSubsystem (DRW Debug Subsystem)
DRW_WaterTimeSubsystem
Section titled “DRW_WaterTimeSubsystem”DRW Water Time Subsystem
The clock every water system reads: the ocean, rivers, the shoreline, foam and water queries. In multiplayer and replays the server’s clock wins and clients follow it, whatever drives it on the server (world time, Sequencer or an external time).
Guide: The water clock
Functions
Section titled “Functions”| Function | Inputs | Outputs | Description |
|---|---|---|---|
Get Water TimeGetWaterTime | Return double | Current water time in seconds. Pure. | |
Get Water Time RateGetWaterTimeRate | Return float | How fast water time runs against world time. 1 = normal, 0 = stopped. Pure. | |
Get Time SourceGetTimeSource | Return EDRWWaterTimeSource | Which clock drives the water right now. Pure. | |
Set External TimeSetExternalTime | Seconds double | Drives the water from your own clock, such as a simulation or replay. Call every frame. In multiplayer call it on the server; clients follow the server. | |
Clear External TimeClearExternalTime | Returns the water to world time. |
DRW_WaterSurfaceSubsystem
Section titled “DRW_WaterSurfaceSubsystem”DRW Water Surface Subsystem
Water surface queries from Blueprint and C++, independent of buoyancy. Rivers, pools and lakes answer immediately; ocean answers are one or two frames behind.
Guide: Reading the water from Blueprint
Functions
Section titled “Functions”| Function | Inputs | Outputs | Description |
|---|---|---|---|
Get Water SurfaceGetWaterSurface | Requester UObject*Location FVectorChannel int32 = 0 | Return boolOut Sample FDRWWaterSurfaceSample | Water surface at a world position. Call it every frame from the same caller: rivers, pools and lakes answer immediately, the ocean answer follows the position one or two frames behind and is invalid on the first call. The object asking (usually self); each requester keeps its own ocean probe. Separate probe per requester when one object samples several positions (0, 1, 2…). |
Create Water ProbeCreateWaterProbe | Location FVector | Return int32 | Starts tracking the water surface at a world position. Returns the probe handle, or -1 when the probe pool is full. |
Set Water Probe LocationSetWaterProbeLocation | Probe int32Location FVector | Moves a probe. The ocean answer for the new position arrives one or two frames later. | |
Get Water Probe SampleGetWaterProbeSample | Probe int32 | Return boolOut Sample FDRWWaterSurfaceSample | Latest surface sample of a probe. Returns false while no result is available. |
Destroy Water ProbeDestroyWaterProbe | Probe int32 | Releases a probe. | |
Sample Water Body SurfaceSampleWaterBodySurface | Location FVector | Return boolOut Sample FDRWWaterSurfaceSample | Instant surface sample from rivers, pools and lakes only. Returns false when no water body covers the position. |
DRW_InteractionSubsystem
Section titled “DRW_InteractionSubsystem”DRW Interaction Subsystem
Runs the ripples, wakes, splashes and foam that floating objects make on the water.
Guide: Making objects float
Properties
Section titled “Properties”DRW Interaction › Settings
| Property | Default | Description |
|---|---|---|
World CoverageWorldCoveragefloat | 51200 1000 to 200000 | World-space coverage of the RT in centimeters (default: 8 cells x 6400 = 51200) |
Decay RateDecayRatefloat | 0.2 0.01 to 5 | Decay rate for interaction effects (higher = faster fade) |
Foam Accumulation RateFoamAccumulationRatefloat | 8 0 to 40 | How fast sources deposit foam into the history. Higher reaches full foam sooner. |
Foam Decay FloorFoamDecayFloorfloat | 0.05 0 to 2 | Subtractive fade, per second. This is what lets interaction foam reach exactly zero. |
Advection StrengthAdvectionStrengthfloat | 0.5 0 to 1 | How fast wake propagates outward (0 = static, 1 = fast movement) |
Diffusion StrengthDiffusionStrengthfloat | 0.5 0 to 1 | How much wake spreads/disperses over time (0 = no spread, 1 = fast spread) |
Max Sources Per FrameMaxSourcesPerFrameint32 | 100 1 to 500 | Maximum interaction sources to process per frame |
EnabledbEnabledbool | true | Enable/disable the interaction system |
Default Interaction Data AssetDefaultInteractionDataAssetUDRW_InteractionDataAsset* | None | Default interaction data asset. Provides baseline values for all interaction effects. When set, overrides the individual UPROPERTY defaults on this subsystem. |
Fixed Update Rate HzFixedUpdateRateHzfloat | 30 10 to 60 | How often (Hz) ripples, wakes and splashes are updated. Lower costs less, higher reacts faster. 30 Hz matches physics and network updates. |
DRW Interaction › Performance
| Property | Default | Description |
|---|---|---|
Min Screen Size ThresholdMinScreenSizeThresholdfloat | 0.002 0 to 0.1 | Minimum screen size threshold for interaction sources. Sources with (Radius / Distance) below this value are culled. Higher values = more aggressive culling = better performance. 0.001 = ~1 pixel at 1000 unit distance for 100 unit radius object. |
Max Interaction DistanceMaxInteractionDistancefloat | 100000 0 to 500000 | Maximum distance (cm) for interaction sources. Sources beyond this distance are always culled regardless of size. Set to 0 to disable distance culling. |
DRW Interaction › Thresholds
| Property | Default | Description |
|---|---|---|
Min Speed For RippleMinSpeedForRipplefloat | 15 1 to 100 | Minimum horizontal speed (cm/s) to generate ripples. Lower = more sensitive. |
Min Speed For WakeMinSpeedForWakefloat | 200 50 to 500 | Minimum horizontal speed (cm/s) for wake generation (vs ripple). |
Min Radius For WakeMinRadiusForWakefloat | 100 10 to 500 | Minimum object radius (cm) to generate wakes. Smaller objects only create ripples. |
Min Vertical Speed For SplashMinVerticalSpeedForSplashfloat | 30 10 to 200 | Minimum vertical speed (cm/s) for impact splash when entering water. |
Impact Splash DurationImpactSplashDurationfloat | 3 0.5 to 10 | Duration (seconds) that impact splashes remain active. |
DRW Interaction › Debug
| Property | Default | Description |
|---|---|---|
Debug DrawbDebugDrawbool | false |
Functions
Section titled “Functions”| Function | Inputs | Outputs | Description |
|---|---|---|---|
Register Interaction SourceRegisterInteractionSource | Source UDRW_PhysicsBodyComponent* | Register a physics body component as an interaction source | |
Unregister Interaction SourceUnregisterInteractionSource | Source UDRW_PhysicsBodyComponent* | Unregister a physics body component | |
Set Grid ManagerSetGridManager | In Grid Manager ADRW_GridManager* | Set the grid manager reference (provides water Z height) | |
Set EnabledSetEnabled | New Enabled bool | Enable or disable the interaction system | |
Clear InteractionsClearInteractions | Clear all interaction effects | ||
Spawn Splash At LocationSpawnSplashAtLocation | World Position FVectorRadius float = 100Intensity float = 1 | Manually spawn a splash at a world position. Useful for effects like explosions, player jumping in water, etc. - XY position where splash occurs (Z is ignored, uses water surface) - Effect radius in cm - Splash intensity (0.0 - 1.0) | |
Get RT World CenterGetRTWorldCenter | Return FVector2D | Get RT world center position Pure. | |
Get World CoverageGetWorldCoverage | Return float | Get world coverage size Pure. | |
Is Interaction EnabledIsInteractionEnabled | Return bool | Check if interaction system is enabled and has valid RT Pure. | |
Get Registered Source CountGetRegisteredSourceCount | Return int32 | Get number of registered sources Pure. | |
Get Active Source CountGetActiveSourceCount | Return int32 | Get number of active sources this frame Pure. |
DRW_DebugSubsystem
Section titled “DRW_DebugSubsystem”DRW Debug Subsystem
Debug drawing for forces, physics shapes and interaction, plus an on-screen readout per actor. The console commands, Blueprint and Project Settings all drive the same settings. Drawing is compiled out of builds without debug drawing, such as Shipping.
Guide: Debugging and setup checks
Functions
Section titled “Functions”| Function | Inputs | Outputs | Description |
|---|---|---|---|
Focus Debug On ActorFocusDebugOnActor | Actor AActor* | Draw only this actor’s debug in this world. Null shows every actor again. | |
Get Debug Focus ActorGetDebugFocusActor | Return AActor* | Pure. | |
Set Debug EnabledSetDebugEnabled | Enable bool | ||
Is Debug EnabledIsDebugEnabled | Return bool | Pure. | |
Set Debug Category EnabledSetDebugCategoryEnabled | Category EDRW_DebugCategoryEnable bool | ||
Is Debug Category EnabledIsDebugCategoryEnabled | Category EDRW_DebugCategory | Return bool | Pure. |
Get Debug OptionsGetDebugOptions | Return FDRW_DebugOptions | Pure. | |
Set Debug OptionsSetDebugOptions | In Options FDRW_DebugOptions | ||
Apply Debug PresetApplyDebugPreset | Preset EDRW_DebugPreset | ||
Reset Debug To Project DefaultsResetDebugToProjectDefaults | Back to the values in Project Settings > Plugins > DRW Debug. |