Download

How to Script SecondFog of ExponentialHeightFog?

ExponentialHeightFog has obvious BP nodes to set primary fog variables at runtime - FogDensity, MaxOpacity, etc, I’m stumped how to set the SecondFogData in code.

You can

  • Get the SecondFog struct in BP from the EHF component
  • Make a new EHFData struct in BP
  • Set members in an EHFData struct in BP
    (see attached screenshot)

But I don’t see a way to actually Set the SecondFogData or its individual members. I want to modify second fog density with a timeline, same as I do for primary fog density.

I suppose this can be done in C++, but I feel like I’m missing something since there are some BP nodes available.

BP or C++ tips? Thanks