Unity Top-Down Vision
August 12, 2025 ยท View on GitHub
Groza Games Top-Down Vision is a powerful raycast-based solution for implementing line of sight visualization in top-down games. Create realistic vision cones and fog of war effects with this Unity package.
โจ Features
- Real-time Line of Sight: Dynamic vision calculation using raycast technology
- URP Integration: Seamless integration with Unity's Universal Render Pipeline
- Customizable Vision Effects: Multiple render features for different visual styles
- Performance Optimized: Efficient rendering pipeline designed for top-down games
- Easy Setup: Simple component-based architecture for quick implementation
๐ Getting Started
Prerequisites
- Unity 6000.0 or later
- Universal Render Pipeline (URP)
Installation
- Clone or download this repository
- Copy the package contents to your Unity project's
Packagesfolder - Or add via Unity Package Manager using the Git URL:
https://github.com/aleverdes/unity-top-down-vision.git
๐ง Setup Instructions
1. Camera Setup
-
Create Vision Camera:
- Create a new camera as a child of your main camera (perspective or orthographic)
- Name it
VisionCamera - Attach the
VisionCamerascript component
-
Setup Target Camera:
- Add the
VisionTargetCamerascript to your main game camera
- Add the
2. Character Setup
- Add Vision Origin:
- Attach the
VisionOriginscript to your main character/player - This component acts as the source of the line of sight vision
- Attach the
3. URP Renderer Settings
Configure your URP Renderer asset by adding the following render features in order:
- Vision Black World Render Feature
- Vision Effect Render Feature
- Vision Blur Render Feature
Note: The order of render features is important for proper visual output.
๐ Package Structure
โโโ Materials/ # Material assets for vision effects
โโโ Scripts/
โ โโโ MonoBehaviours/ # Core vision components
โ โโโ URP/
โ โโโ MonoBehaviours/ # URP-specific camera components
โ โโโ RenderFeatures/ # Custom URP render features
โโโ Shaders/ # Vision effect shaders and shader graphs
๐ฎ Usage
Once setup is complete, the vision system will automatically:
- Calculate line of sight from the character's position
- Render vision effects based on the configured render features
- Update vision dynamically as the character moves
๐งช Compatibility
- Tested on: Unity 6000.0+
- Render Pipeline: Universal Render Pipeline (URP) only
- Platforms: All platforms supported by Unity and URP
๐ Support & Issues
If you encounter any issues or need support:
- Check the Issues page for existing reports
- Create a new issue with detailed information about your problem
- Include Unity version, URP version, and error logs if applicable
๐ค Contributing
Contributions are welcome! Please feel free to submit pull requests or open issues for:
- Bug fixes
- Feature improvements
- Documentation updates
- Performance optimizations
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
๐ Credits
Developed by Groza Games
Good luck with your top-down vision implementation! ๐ฏ