Skip to content

Blueprint Library

Static nodes you can call from any Blueprint. They find the ocean and water bodies themselves, so no reference is needed.

DRW Blueprint Library

One-node access to the ocean, water bodies and water queries from any Blueprint (character, actor, widget). The nodes find the Grid Manager themselves.

FunctionInputsOutputsDescription
Get DRW Grid Manager
GetDRWGridManager
Return ADRW_GridManager*Get the DRW Grid Manager in the current world. Returns The GridManager actor, or nullptr if not found. Pure. Static.
Set Ocean Wave Data
SetOceanWaveData
Wave Data UDRW_WaveDataAsset*
Blend Duration float = 2
Blend Easing EDRWBlendEasing = Linear
Return boolSet ocean wave data with optional blend duration and easing. The wave data asset to apply. Time in seconds to blend to the new wave settings. Easing type for the blend transition. Returns True if successful, false if GridManager not found. Static.
Set Ocean Wave Data Instant
SetOceanWaveDataInstant
Wave Data UDRW_WaveDataAsset*Return boolApply ocean wave data instantly without blending. The wave data asset to apply immediately. Returns True if successful, false if GridManager not found. Static.
Set Ocean Visual Data
SetOceanVisualData
Visual Data UDRW_VisualDataAsset*
Blend Duration float = 1.5
Blend Easing EDRWBlendEasing = Linear
Return boolSet ocean visual data with optional blend duration and easing. The visual data asset to apply. Time in seconds to blend to the new visual settings. Easing type for the blend transition. Returns True if successful, false if GridManager not found. Static.
Set Ocean Visual Data Instant
SetOceanVisualDataInstant
Visual Data UDRW_VisualDataAsset*Return boolApply ocean visual data instantly without blending. The visual data asset to apply immediately. Returns True if successful, false if GridManager not found. Static.
Set Ocean Preset
SetOceanPreset
Preset UDRW_OceanPresetDataAsset*Return boolSet complete ocean preset (wave + visual data combined). Uses blend durations defined in the preset asset. The ocean preset data asset to apply. Returns True if successful, false if GridManager not found. Static.
Set Ocean FFT Enabled
SetOceanFFTEnabled
Enabled boolReturn boolEnable or disable FFT wave simulation. When disabled, the water surface will be flat. Whether to enable FFT simulation. Returns True if successful, false if GridManager not found. Static.
Is Ocean FFT Enabled
IsOceanFFTEnabled
Return boolCheck if FFT wave simulation is currently enabled. Returns True if FFT is enabled, false if disabled or GridManager not found. Pure. Static.
Set Ocean FFT Resolution
SetOceanFFTResolution
Resolution EDRWFFTResolutionReturn boolSet the ocean FFT sampling resolution at runtime, a local quality/performance setting (not replicated; the wave shape is resolution-independent). Costs a one-frame hitch; drive it from a graphics-settings menu, not per frame. The FFT resolution (128/256/512/1024). Returns True if successful, false if GridManager not found. Static.
Get Ocean FFT Resolution
GetOceanFFTResolution
Return bool
Out Resolution EDRWFFTResolution
Get the current ocean FFT sampling resolution. The current FFT resolution. Returns True if successful, false if GridManager not found. Pure. Static.
Is Ocean Wave Blending
IsOceanWaveBlending
Return boolCheck if ocean wave properties are currently blending. Returns True if wave blend is in progress. Pure. Static.
Is Ocean Visual Blending
IsOceanVisualBlending
Return boolCheck if ocean visual properties are currently blending. Returns True if visual blend is in progress. Pure. Static.
Is Ocean Blending
IsOceanBlending
Return boolCheck if any ocean blend (wave or visual) is in progress. Returns True if any blend is in progress. Pure. Static.
Set Caustics Light Direction
SetCausticsLightDirection
Light Direction FVectorReturn boolSet the light direction used for underwater caustics. Only used while the ocean’s Caustics Follow Sun is off. Direction vector (will be normalized internally). Returns True if successful, false if GridManager not found. Static.
Get Caustics Light Direction
GetCausticsLightDirection
Return bool
Out Light Direction FVector
Get the current light direction used for underwater caustics. The current caustics light direction. Returns True if successful, false if GridManager not found. Pure. Static.
Is DRW Ready
IsDRWReady
Return boolCheck if the DRW Grid Manager has completed all initialization (grid spawned, depthmap ready). Returns True if ready, false if still initializing or GridManager not found. Pure. Static.
Get Water Body At Location
GetWaterBodyAtLocation
Location FVectorReturn ADRW_WaterBody*Find the WaterBody actor that contains the given world location. Checks all ADRW_WaterBody actors in the world via IsPointInWater(). World position to test. Returns The WaterBody at that location, or nullptr if none found. Pure. Static.
Get Water Surface At Location
GetWaterSurfaceAtLocation
Location FVector
Channel int32 = 0
Return bool
Out Sample FDRWWaterSurfaceSample
Water surface height, normal and velocity at a world position, on the ocean and on rivers, pools and lakes. No component needed: call it every frame (for example on Tick). Rivers, pools and lakes answer immediately; the ocean answer trails the position by one or two frames and is not valid on the very first call. World position; only X and Y are used. Use a different channel per position when one Blueprint samples several points (0, 1, 2…). Returns True when OutSample holds a valid surface. Static.

Query Water Surface (async)

A one-off water surface query as an async node. Rivers, pools and lakes answer immediately; the ocean answers one or two frames later.

Guide: Reading the water from Blueprint

FunctionInputsOutputsDescription
Query Water Surface
QueryWaterSurface
Location FVector
Timeout Seconds float = 1
Return UDRW_QueryWaterSurfaceAsync*Samples the water surface (height, normal, velocity) at a world position. World position; only X and Y are used. How long to wait for the ocean result before firing On Failed. Static.
EventSignatureDescription
On SampledSample FDRWWaterSurfaceSample
On FailedSample FDRWWaterSurfaceSampleNo water at the position, or the ocean result did not arrive in time.

DRW Vessel Input Setup

Static helpers that create vessel input actions and mapping contexts.

FunctionInputsOutputsDescription
Create Input Actions
CreateInputActions
Outer UObject*Return UDRW_VesselInputActions*Static.
Create Keyboard Mouse Mapping Context
CreateKeyboardMouseMappingContext
Outer UObject*
Actions UDRW_VesselInputActions*
Return UInputMappingContext*Static.
Create Gamepad Mapping Context
CreateGamepadMappingContext
Outer UObject*
Actions UDRW_VesselInputActions*
Return UInputMappingContext*Static.
Create Input Action
CreateInputAction
Outer UObject*
Action Name FName
Value Type EInputActionValueType
Return UInputAction*Static.