# Set param of LocalFogVolume not working properly?!

**URL:** <https://forums.unrealengine.com/t/set-param-of-localfogvolume-not-working-properly/2874574>\
**Category:** Blueprint\
**Tags:** unreal-engine, question\
**Created:** [November 29, 2026, 9:12am UTC](https://forums.unrealengine.com/t/set-param-of-localfogvolume-not-working-properly/2874574 "2026-11-29T09:12:05Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![insodimension](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@insodimension](https://forums.unrealengine.com/u/insodimension)\
**Post date:** [December 2, 2026, 3:38pm UTC](https://forums.unrealengine.com/t/set-param-of-localfogvolume-not-working-properly/2874574/4 "2026-12-02T15:38:10Z")

</div>

56legion was right that it’s a clamp, it’s just in the setter, not in the property.

In LocalFogVolumeComponent.cpp all the float setters on that component come from one macro that does `MemberName = FMath::Max(MemberType(0), NewValue)`. So Set Height Fog Offset turns your -1.9 into 0, and any positive value goes through fine. That clamp makes sense for density and falloff, but the offset is meant to go down to -2 (UIMin -2 in the header). The details panel writes the property directly, which is why typing it there works.

You can’t work around it in Blueprint because HeightFogOffset is BlueprintReadOnly. If you can add C++, put this in a Blueprint Function Library:

```cpp
#include "Components/LocalFogVolumeComponent.h"

UFUNCTION(BlueprintCallable, Category = "Fog")
static void SetLocalFogHeightOffset(ULocalFogVolumeComponent* Fog, float Value)
{
    if (Fog)
    {
        Fog->HeightFogOffset = Value;
        Fog->MarkRenderStateDirty();
    }
}

```

I read this in the 5.9 source. The 5.8 header is identical, but I didn’t have the 5.8 .cpp to check. Probably worth a bug report too.

---

_[View the full topic](https://forums.unrealengine.com/t/set-param-of-localfogvolume-not-working-properly/2874574)._
