This is a Fog of War plugin for Unreal Engine 4. It is based on the Fog of War Tutorial by Isvulfe on the Unreal Engine forums.
Right now the code is nearly identical to that of the thread, except for some minor changes to get it running on UE 4.19 and turning it into a plugin. This will change in the future as will use modify this in order to make it a better fit for my other projects.
- Save/clone into the
Plugins/
directory at the project root - Compile. You will need to right click on the
.uproject
in your project and selectGenerate Visual Studio project files
so VS is aware of the new source files. - Add
FogOfWar
toPublicDependencyModuleNames
in your.Build.cs
The best (and AFAIK only) documentation is the original thread
HEAD
- Support different fog colors
- Add FogOfWarComponent that handles registration with the FogOfWarManager and keeps track of per-actor settings like sight range
- Move code from
LevelInfo
Blueprint to theAFogOfWarManager
Version 1.0 - 15.07.2018
- First version, mostly original code from the thread on the Unreal Engine Forums
- Runs on UE 4.19
- Turned into a plugin