Navigation
API > API/Plugins > API/Plugins/Water > API/Plugins/Water/UWaterBodyComponent
Description
Returns what can be considered the single base Z of the water surface. Doesn't really make sense for non-flat water bodies like EWaterBodyType::Transition or EWaterBodyType::River but can still be useful when using FixedZ for post-process, for example.
| Name | GetConstantSurfaceZ |
| Type | function |
| Header File | /Engine/Plugins/Experimental/Water/Source/Runtime/Public/WaterBodyComponent.h |
| Include Path | #include "WaterBodyComponent.h" |
| Source | /Engine/Plugins/Experimental/Water/Source/Runtime/Private/WaterBodyComponent.cpp |
virtual float GetConstantSurfaceZ() const