UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
ExponentialHeightFogData.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "ExponentialHeightFogData.generated.h"
6
11USTRUCT(BlueprintType)
13{
15
16
17 UPROPERTY(EditAnywhere, BlueprintReadOnly, interp, Category=ExponentialHeightFogComponent, meta = (UIMin = "0", UIMax = ".05"))
18 float FogDensity = 0.02f;
19
24 UPROPERTY(EditAnywhere, BlueprintReadOnly, interp, Category=ExponentialHeightFogComponent, meta = (UIMin = "0.001", UIMax = "2"))
25 float FogHeightFalloff = 0.2f;
26
28 UPROPERTY(EditAnywhere, BlueprintReadOnly, interp, Category=ExponentialHeightFogComponent)
29 float FogHeightOffset = 0.0f;
30
32 void ClampToValidRanges()
33 {
34 FogDensity = FMath::Clamp(FogDensity, 0.0f, 10.0f);
35 FogHeightFalloff = FMath::Clamp(FogHeightFalloff, 0.0f, 2.0f);
36 }
37};
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define USTRUCT(...)
Definition ObjectMacros.h:746
#define GENERATED_USTRUCT_BODY(...)
Definition ObjectMacros.h:767
USkinnedMeshComponent float
Definition SkinnedMeshComponent.h:60
Definition ExponentialHeightFogData.h:13
static constexpr UE_FORCEINLINE_HINT T Clamp(const T X, const T MinValue, const T MaxValue)
Definition UnrealMathUtility.h:592