Skip to content

Quick Setup

This guide provides a streamlined workflow for integrating the RTS Fog of War system into your Unity project.

Setup Steps

  1. Import the Fog of War package into your Unity project.

  2. Create a new scene or open an existing scene.

  3. Create a ground plane (GameObject > 3D Object > Plane) to serve as your playable area.

  4. Create an empty GameObject and name it "Fog Manager":

  5. Add the FogOfWarManager component.
  6. Configure the Bounds properties to match your ground plane's dimensions.

  7. Create a GameObject within the defined bounds area:

  8. Add the VisionSource component.
  9. Adjust the Scale property to set the vision radius.

  10. Enter Play Mode - the fog should now cover the entire area except for the region around the VisionSource.