Blueprint Library
Static nodes you can call from any Blueprint. They find the ocean and water bodies themselves, so no reference is needed.
- DRW_BlueprintLibrary (DRW Blueprint Library), DRW_QueryWaterSurfaceAsync (Query Water Surface (async)), DRW_VesselInputSetup (DRW Vessel Input Setup)
DRW_BlueprintLibrary
Section titled “DRW_BlueprintLibrary”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.
Functions
Section titled “Functions”| Function | Inputs | Outputs | Description |
|---|---|---|---|
Get DRW Grid ManagerGetDRWGridManager | 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 DataSetOceanWaveData | Wave Data UDRW_WaveDataAsset*Blend Duration float = 2Blend Easing EDRWBlendEasing = Linear | Return bool | Set 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 InstantSetOceanWaveDataInstant | Wave Data UDRW_WaveDataAsset* | Return bool | Apply 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 DataSetOceanVisualData | Visual Data UDRW_VisualDataAsset*Blend Duration float = 1.5Blend Easing EDRWBlendEasing = Linear | Return bool | Set 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 InstantSetOceanVisualDataInstant | Visual Data UDRW_VisualDataAsset* | Return bool | Apply 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 PresetSetOceanPreset | Preset UDRW_OceanPresetDataAsset* | Return bool | Set 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 EnabledSetOceanFFTEnabled | Enabled bool | Return bool | Enable 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 EnabledIsOceanFFTEnabled | Return bool | Check 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 ResolutionSetOceanFFTResolution | Resolution EDRWFFTResolution | Return bool | Set 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 ResolutionGetOceanFFTResolution | Return boolOut 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 BlendingIsOceanWaveBlending | Return bool | Check if ocean wave properties are currently blending. Returns True if wave blend is in progress. Pure. Static. | |
Is Ocean Visual BlendingIsOceanVisualBlending | Return bool | Check if ocean visual properties are currently blending. Returns True if visual blend is in progress. Pure. Static. | |
Is Ocean BlendingIsOceanBlending | Return bool | Check if any ocean blend (wave or visual) is in progress. Returns True if any blend is in progress. Pure. Static. | |
Set Caustics Light DirectionSetCausticsLightDirection | Light Direction FVector | Return bool | Set 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 DirectionGetCausticsLightDirection | Return boolOut 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 ReadyIsDRWReady | Return bool | Check 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 LocationGetWaterBodyAtLocation | Location FVector | Return 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 LocationGetWaterSurfaceAtLocation | Location FVectorChannel int32 = 0 | Return boolOut 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. |
DRW_QueryWaterSurfaceAsync
Section titled “DRW_QueryWaterSurfaceAsync”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
Functions
Section titled “Functions”| Function | Inputs | Outputs | Description |
|---|---|---|---|
Query Water SurfaceQueryWaterSurface | Location FVectorTimeout 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. |
Events
Section titled “Events”| Event | Signature | Description |
|---|---|---|
| On Sampled | Sample FDRWWaterSurfaceSample | |
| On Failed | Sample FDRWWaterSurfaceSample | No water at the position, or the ocean result did not arrive in time. |
DRW_VesselInputSetup
Section titled “DRW_VesselInputSetup”DRW Vessel Input Setup
Static helpers that create vessel input actions and mapping contexts.
Functions
Section titled “Functions”| Function | Inputs | Outputs | Description |
|---|---|---|---|
Create Input ActionsCreateInputActions | Outer UObject* | Return UDRW_VesselInputActions* | Static. |
Create Keyboard Mouse Mapping ContextCreateKeyboardMouseMappingContext | Outer UObject*Actions UDRW_VesselInputActions* | Return UInputMappingContext* | Static. |
Create Gamepad Mapping ContextCreateGamepadMappingContext | Outer UObject*Actions UDRW_VesselInputActions* | Return UInputMappingContext* | Static. |
Create Input ActionCreateInputAction | Outer UObject*Action Name FNameValue Type EInputActionValueType | Return UInputAction* | Static. |