Adding Fog of War to an Actor
Setup fog of war in C++
For this tutorial, I already created a new actor (you can follow this documentation) for fog of war component and it is called MySampleActor.
I'll be adding the fog of war component at begin play so in MySampleActor.h file, let's first declare like this:
Then in MySampleActor.cpp file lets define BeginPlay and add set our component.
Last updated