View on Asset Store (opens in new tab)
Package details
- Latest version
- 1.3.1
- Last updated
- First released
- Unity version
- 2022.3.62 or later
- Package size
- 2.2 MB
- Files
- 71
- Favorites
- 43
- Views in the past week
- 18
Price tracking
- Last checked
- Tracked since
- Lowest recorded
- $39.99 on
Keywords
Fog Of War RTS
Classic fog of war for Unity - reveals maps as units explore, hides unexplored areas, and dims discovered regions. Optimized to handle thousands of units smoothly.
Affiliate link · Purchases support this site
Price history
Last 6 months
USDAsset preview
1 / 12
Fog Of War RTS screenshot 1
About this asset
This package brings the classic fog of war mechanic to Unity, automatically tracking map exploration and unit visibility. Perfect for real-time strategy (RTS) games, top-down games, and 2D projects.
The fog of war creates three distinct visibility states:
- Hidden areas that have never been discovered by any vision source
- Explored regions that were previously discovered but aren't currently in vision range
- Visible areas currently within your units' vision range
Designed for Unity's Universal Render Pipeline, the system works with both orthographic and perspective camera projection. You control when the fog refreshes - choose automatic refresh with a custom interval for real-time gameplay, or manual refresh for turn-based mechanics.
Fully customizable visual appearance using custom textures and colors for both unexplored and explored fog. The package includes a UI map fog overlay component that works with your custom minimaps, along with an API for saving and restoring exploration progress across game sessions.
DISCLAIMER
If you are using Unity ECS and are comfortable working with it, I recommend ECS Fog Of War RTS version for the best performance and scalability, especially with large numbers of units. If you already own this package, you can get the ECS version with an exclusive 75% discount. For traditional GameObject-based projects, this standard version is the recommended choice.
From the publisher's Asset Store listing.
Technical details
- Dynamic Fog Rendering – Areas smoothly reveal and hide in real-time as units move around the map.
- High Performance – Optimized with compute shaders, Burst compiler, and Job System to handle thousands of vision sources efficiently.
- Quick Integration – Minimal setup required to get fog of war working in your existing project within minutes.
- Flexible Vision Sources – Create circular or square vision areas with customizable size, position offset, and rotation offset.
- Visibility Events – Objects receive events when they become visible or hidden through UnityEvents or C# events.
- Smooth Object Fading – Built-in Fader component with custom shader support for seamless fade-in and fade-out transitions.
- UI Map Fog Overlay – Apply fog of war effect to your custom UI minimaps with a single component.
- Save/Load API – Retrieve current fog discovery state as compressed data and restore it later for persistent exploration across game sessions.
- Flexible Refresh Control – Choose automatic refresh at custom intervals (every frame, every 0.1s, etc.) or manual refresh for complete control in turn-based games.
- Versatile Camera Support – Works without requiring additional cameras and supports both orthographic and perspective projections.
- Customizable Appearance – Use custom textures and colors for both unexplored and explored fog. Adjust blur intensity and fade duration to match your art style.
- Vision Layers – Control which units can see which areas with four independent vision layers.
- URP Integration – Fully integrated with Universal Render Pipeline for modern rendering workflows.
- Full Source Code – Includes complete C# source code for maximum flexibility, customization, and integration with your project.
Compatibility
| Unity version | Built-in | URP | HDRP |
|---|---|---|---|
| 2022.3.62f2 | Not listed | Compatible | Not listed |
As listed on the Asset Store.