Version:

River Request Bus Interface

River Request Bus Interface

The River component uses two event bus (EBus) interfaces, the RiverRequestBus and the RoadsandRiversGeometryRequestsBus, which is shared with the Road component.

For information about the RoadsandRiversGeometryRequestsBus, see RoadsAndRiversGeometryRequestsBus Interface.

Use the following request functions with the RoadsAndRiversGeometryRequestsBus to communicate with other components of your game.

For more information, see Working with the Event Bus (EBus) system.


Request NameDescriptionParametersReturnScriptable
SetWaterVolumeDepthSets the water volume depth of the river in meters.FloatNoneYes
GetWaterVolumeDepthReturns the setting for the water volume depth of the river in meters.NoneFloatYes
SetTileWidthSets the river’s tile width in meters.FloatNoneYes
GetTileWidthReturns the setting for the river’s tile width in meters.NoneFloatYes
SetWaterCapFogAtVolumeDepthSets whether to enable capping the fog at the depth of the river.BooleanNoneYes
GetWaterCapFogAtVolumeDepthReturns whether fog setting for the Cap at Depth parameter is enabled.NoneBooleanYes
SetWaterFogDensitySets the density of the fog in the water.FloatNoneYes
GetWaterFogDensityReturns the setting for the density of the fog in the water.NoneFloatYes
SetFogColorSets the color of the fog in the water.AZ::ColorNoneYes
GetFogColorReturns the setting for the color of the fog in the water.NoneAZ::ColorYes
SetFogColorAffectedBySunSets whether the sun affects the fog color.BooleanNoneYes
GetFogColorAffectedBySunReturns whether the fog setting for the Affected by Sun parameter is enabled.NoneBooleanYes
SetWaterFogShadowingSets the shadow’s darkness on the surface of the river.FloatNoneYes
GetWaterFogShadowingReturns the setting for the shadow’s darkness on the surface of the river.NoneFloatYes
SetWaterCausticsSets whether to enable caustics.BooleanNoneYes
GetWaterCausticsReturns whether caustic setting is enabled.NoneBooleanYes
SetWaterCausticIntensitySets the intensity of normals during caustic generation.FloatNoneYes
GetWaterCausticIntensityReturns the setting for the caustic Intensity parameter.NoneFloatYes
SetWaterCausticHeightSets the distance above the water’s surface that caustics are visible.FloatNoneYes
GetWaterCausticHeightReturns the setting for the distance above the water’s surface that caustics are visible.NoneFloatYes
SetWaterCausticTilingSets the tiling of normals during caustics generation.FloatNoneYes
GetWaterCausticTilingReturns the setting for the tiling of normals during caustics generation.NoneFloatYes
SetPhysicalizeSets whether to enable Physics (binds river with CryPhysics).BooleanNoneYes
GetPhysicalizeReturns the setting for whether Physics is enabled.NoneBooleanYes
SetWaterStreamSpeedSets the speed at which physicalized objects are moved along the river. Negative values move objects in the opposite direction.FloatNoneYes
GetWaterStreamSpeedReturns the setting for the speed at which physicalized objects are moved along the river.NoneFloatYes