Navigation
Unreal Engine C++ API Reference > Plugins > Water
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- USubsystem
- UWorldSubsystem
- UTickableWorldSubsystem
- UWaterSubsystem
References
Module | Water |
Header | /Engine/Plugins/Experimental/Water/Source/Runtime/Public/WaterSubsystem.h |
Include | #include "WaterSubsystem.h" |
Syntax
UCLASS&40;BlueprintType, Transient&41;
class UWaterSubsystem : public UTickableWorldSubsystem
Remarks
This is the API used to get information about water at runtime
Variables
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() |
TObjectPtr< ABuoyancyManager > | BuoyancyManager | |
![]() ![]() |
TObjectPtr< UStaticMesh > | DefaultLakeMesh | |
![]() ![]() |
TObjectPtr< UStaticMesh > | DefaultRiverMesh | |
![]() ![]() ![]() ![]() |
FOnCameraUnderwaterStateChanged | OnCameraUnderwaterStateChanged | |
![]() ![]() ![]() ![]() |
FOnWaterScalabilityChanged | OnWaterScalabilityChanged | |
![]() |
UWaterSubsystem::FOnWaterSubsystemInitialized | OnWaterSubsystemInitialized |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
TSoftObjectPtr< AWaterZone > | FindWaterZone
(
const FBox2D& Bounds, |
Returns the water with the highest priority within the bounds provided. |
![]() ![]() |
TSoftObjectPtr< AWaterZone > | FindWaterZone
(
const UWorld* World, |
Returns the water with the highest priority within the bounds provided. |
![]() ![]() |
bool | ||
![]() ![]() |
ABuoyancyManager * | ||
![]() ![]() ![]() ![]() |
float | ||
![]() ![]() |
UMaterialParameterCollection * | ||
![]() ![]() ![]() ![]() |
float | Returns the base height of the ocean. This should correspond to its world Z position | |
![]() |
TWeakObjectPtr< UWaterBodyComponent > | ||
![]() ![]() ![]() ![]() |
float | Returns the relative flood height | |
![]() ![]() ![]() ![]() |
float | Returns the total height of the ocean. | |
![]() ![]() |
float | ||
![]() ![]() ![]() ![]() |
int32 | ||
![]() ![]() ![]() ![]() |
int32 | ||
![]() ![]() ![]() ![]() |
int32 | ||
![]() ![]() |
bool | ||
![]() ![]() ![]() ![]() |
float | ||
![]() ![]() |
FWaterBodyManager * | GetWaterBodyManager
(
const UWorld* InWorld |
Static helper function to get a waterbody manager from a world, returns nullptr if world or manager don't exist |
![]() ![]() |
UWaterSubsystem * | GetWaterSubsystem
(
const UWorld* InWorld |
Static helper function to get a water subsystem from a world, returns nullptr if world or subsystem don't exist |
![]() ![]() ![]() ![]() |
float | ||
![]() ![]() |
TWeakPtr< FWaterViewExtension, ESPMode::ThreadSafe > | GetWaterViewExtension
(
const UWorld* InWorld |
Static helper function to get a weak ptr to the water scene view extension for a given world. |
![]() ![]() ![]() ![]() |
bool | ||
![]() ![]() ![]() ![]() |
bool | ||
![]() ![]() ![]() ![]() |
bool | ||
![]() |
void | MarkAllWaterZonesForRebuild
(
EWaterZoneRebuildFlags RebuildFlags |
|
![]() |
void | MarkWaterZonesInRegionForRebuild
(
const FBox2D& InUpdateRegion, |
|
![]() ![]() ![]() |
void | PrintToWaterLog
(
const FString& Message, |
|
![]() ![]() |
void | SetAllowWaterSubsystemOnPreviewWorld
(
bool bInValue |
|
![]() |
void | SetOceanBodyComponent
(
TWeakObjectPtr< UWaterBodyComponent > InOceanBodyComponent |
|
![]() ![]() ![]() |
void | SetOceanFloodHeight
(
float InFloodHeight |
|
![]() |
void | SetOverrideSmoothedWorldTimeSeconds
(
float InTime |
|
![]() |
void | SetShouldOverrideSmoothedWorldTimeSeconds
(
bool bOverride |
|
![]() |
void | SetShouldPauseWaveTime
(
bool bInPauseWaveTime |
|
![]() |
void | SetSmoothedWorldTimeSeconds
(
float InTime |
Overridden from UWorldSubsystem
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() |
bool | DoesSupportWorldType
(
EWorldType::Type WorldType |
UWorldSubsystem implementation Begin. |
![]() ![]() |
void | Called once all UWorldSubsystems have been initialized |
Overridden from USubsystem
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | Deinitialize () |
Implement this for deinitialization of instances of the system |
![]() ![]() |
void | Initialize
(
FSubsystemCollectionBase& Collection |
USubsystem implementation Begin. |
Overridden from FTickableGameObject
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() |
bool | Used to determine whether the object should be ticked in the editor. |
Overridden from FTickableObjectBase
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() |
TStatId | GetStatId () |
Return the stat id to use for this tickable |
![]() ![]() ![]() |
bool | IsTickable () |
FTickableGameObject implementation Begin. |
![]() ![]() |
void | Tick
(
float DeltaTime |
Pure virtual that must be overloaded by the inheriting class. |
Classes
Type | Name | Description | |
---|---|---|---|
![]() |
FOnWaterSubsystemInitialized | ||
![]() |
FScopedAllowWaterSubsystemOnPreviewWorld | Little scope object to temporarily change the value of bAllowWaterSubsystemOnPreviewWorld |
Constants
Name | Description |
---|---|
bAllowWaterSubsystemOnPreviewWorld | By default, there is no water subsystem allowed on preview worlds except when explicitly requested : |
Deprecated Variables
Type | Name | Description | |
---|---|---|---|
![]() |
FWaterBodyManager | WaterBodyManager | This will become a private member. Prefer calling GetWaterBodyManager instead |
Deprecated Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | ForEachWaterBodyComponent
(
const UWorld* World, |
Please use FWaterBodyManager::ForEachWaterBodyComponent instead. |
![]() ![]() |
AWaterZone * | GetWaterZoneActor
(
ULevel* InPreferredOuterLevel |
There may be multiple water zones per level. Prefer calling the GetWaterZone on a per-water body basis or iterating over all zones. |