FWaterUtils

Choose your operating system:

Windows

macOS

Linux

References

Module

Water

Header

/Engine/Plugins/Experimental/Water/Source/Runtime/Public/WaterUtils.h

Include

#include "WaterUtils.h"

Syntax

struct FWaterUtils

Functions

Name Description

Public function Static

UMaterialIns...

 

GetOrCreateTransientMID

(
    UMaterialInstanceDynamic* InMI...,
    FName InMIDName,
    UMaterialInterface* InMaterial...,
    EObjectFlags InAdditionalObjectFlag...
)

Creates a transient UMaterialInstanceDynamic out of the material interface in input or returns the existing one if it's compatible (same parent material)

Public function Static

UTextureRend...

 

GetOrCreateTransientRenderTarget2D

(
    UTextureRenderTarget2D* InRend...,
    FName InRenderTargetName,
    const FIntPoint& InSize,
    ETextureRenderTargetFormat InFormat,
    const FLinearColor& InClearColor,
    bool bInAutoGenerateMipMaps
)

Creates a transient render target of the proper size/format/...

Public function Static

bool

 

IsWaterEnabled

(
    bool bIsRenderThread
)

Public function Static

bool

 

IsWaterMeshEnabled

(
    bool bIsRenderThread
)

Public function Static

bool

 

IsWaterMeshRenderingEnabled

(
    bool bIsRenderThread
)

Public function Static

FGuid

 

StringToGuid

(
    const FString& InStr
)