Anti-Wallhack Visibility System (Free)

Anti-Wallhack Visibility System is a robust, server-authoritative solution for Unity multiplayer games. It validates line-of-sight using physics linecasts and directional sampling, ensuring players only see what they are legitimately allowed to see — effectively preventing wallhacks and client-side cheats. Ideal for PvP shooters, tactical multiplayer games and competitive environments.

Why use this asset


Server-side security: All visibility checks run on the host/server, resistant to client tampering.

Real-time events: Subscribe to visibility changes for UI and gameplay logic.

Easy integration: Auto-registers with ObserverManager and supports URP, HDRP and Mobile.

Multiplayer ready: Compatible with Photon Fusion, PUN, Mirror, Netcode for GameObjects and Fish-Networking.


Core Features (Free Version)

• Observer-based FOV validation with aspect ratio and pitch control

• Dynamic and fixed line sampling per face

• UnityEvent relay for no-code event handling

• Editor gizmos for debugging cones, normals and linecasts

• Performance-optimized with layer masks and adjustable resolution

• Basic wall clamp to avoid wall penetration artifacts


Quick Setup

  1. Add ObserverManager to an empty GameObject
  2. Attach PlayerObserver to the camera (e.g. FOV=60, viewDistance=30)
  3. Attach PlayerVisibilityDetector to players (requires child BoxCollider)
  4. Optional: Add VisibilityUnityEventRelay for Inspector-based events
  5. Subscribe to OnVisibilityChanged for gameplay logic

Demo Scene Included

Test with multiple players, gizmos and time scale controls. Works in single-player for stealth-style visibility mechanics.


Requirements

Unity 2021.3+


Optional networking frameworks: Photon Fusion, Mirror, Netcode for GameObjects, Fish-Networking

No external dependencies beyond Unity Physics


Documentation & Support

Includes full PDF documentation and multiplayer integration guide.

Contact: extremeworldstudio@gmail.com


PRO Version

The PRO version adds advanced features such as cylinder-based visibility, observer prediction, latency compensation, animation-aware detection and adaptive update scheduling for competitive multiplayer servers.


Secure your multiplayer game today — prevent wallhacks without trusting the client.