
Automatically fades out objects that block the camera's view of the player. Ideal for third-person and top-down games. Fully customizable fade behavior and optimized for performance.Tested in Unity 6000.1.7f1 and 6000.0.23.f1.Should work in older Unity-Versions too.Auto Transparency for Obstacles is a lightweight and highly customizable tool that automatically fades out any objects that obstruct the view between the camera and a target (usually the player).Whether you're working on a third-person action game or a top-down RPG, this system ensures a clear line of sight without manual setup or complex coding.FeaturesAutomatically detects and fades blocking objectsSmooth fade-in and fade-out transitionsFully configurable transparency level and fade speedOptional shadow retention for better visual qualityLayer-based filtering for precise controlWorks out of the box – includes a demo sceneOptimized to minimize performance impactUse CasesThird-person adventure or action gamesTop-down RPGsAny scenario where the player should always stay visibleEasy to IntegrateAdd the FadeObjectBlockingObject component to your camera (or manager object)Assign your player as the targetSelect which layers should be considered as view-blockingAdd the FadingObject script to any object you want to fadeNo coding required!Recommend Unity 6 (Tested in Unity 6000.1.7f1 and 6000.0.23.f1)Should work in older Unity-VersionsRender Pipelines: URP, Built-In supported; HDRP may require custom shader setupPlatform Compatibility: Works on PC, Mac, consoles, and mobileRaycasting: Uses RaycastNonAlloc for performanceSource code includedDemo scene includedUsed AI to generate Marketing Images.Automatically fades out objects that block the camera's view of the player. Ideal for third-person and top-down games. Fully customizable fade behavior and optimized for performance.
Tested in Unity 6000.1.7f1 and 6000.0.23.f1.
Should work in older Unity-Versions too.
Auto Transparency for Obstacles is a lightweight and highly customizable tool that automatically fades out any objects that obstruct the view between the camera and a target (usually the player).
Whether you're working on a third-person action game or a top-down RPG, this system ensures a clear line of sight without manual setup or complex coding.
Features
Automatically detects and fades blocking objects
Smooth fade-in and fade-out transitions
Fully configurable transparency level and fade speed
Optional shadow retention for better visual quality
Layer-based filtering for precise control
Works out of the box – includes a demo scene
Optimized to minimize performance impact
Use Cases
Third-person adventure or action games
Top-down RPGs
Any scenario where the player should always stay visible
Easy to Integrate
Add the FadeObjectBlockingObject component to your camera (or manager object)
Assign your player as the target
Select which layers should be considered as view-blocking
Add the FadingObject script to any object you want to fade
No coding required!
Recommend Unity 6 (Tested in Unity 6000.1.7f1 and 6000.0.23.f1)
Should work in older Unity-Versions
Render Pipelines: URP, Built-In supported; HDRP may require custom shader setup
Platform Compatibility: Works on PC, Mac, consoles, and mobile
Raycasting: Uses RaycastNonAlloc for performance
Source code included
Demo scene included
Used AI to generate Marketing Images.