Runtime Barricade System is a ready-to-use Unity package for adding interactive barricading gameplay to doors, windows, gates, and other openings.
Players can collect boards and nails, place boards onto configured barricade slots, hammer them into place, and defend against enemies that damage and destroy barricades at runtime.
Show full description...
Build survival barricades, zombie defenses, horror escape rooms, base-defense setups, and destructible blocked entrances with a complete runtime system.
⚒️ Main Features
- Runtime Board Placement
- Place barricade boards onto configured slots on doors, windows, gates, or custom openings.
- Board & Nail Inventory
- Players can collect and use boards and nails as barricade building resources.
- Pickup Prefabs
- Includes board pickup and nail crate pickup prefabs for quick setup.
- Hammer / Build Progress
- Boards can require hammering or build progress before becoming fully secured.
- Board Health System
- Each placed board can have health, receive damage, and be destroyed at runtime.
- Enemy Barricade Attacks
- Includes a sample enemy attacker that can damage and break barricades.
- Door & Window Prefabs
- Ready barricade opening prefabs are included for doors and windows.
- UnityEvent Hooks
- Connect barricade actions to UI, audio, VFX, quests, alerts, or custom gameplay logic.
- Demo Player Setup
- Includes a demo first-person player controller and interaction setup.
- Ready Demo Scene
- Test pickups, board placement, hammering, enemy attacks, and destruction immediately.
🪚 Runtime Board Placement
Barricades are built at runtime by placing boards onto configured barricade slots.
Each door, window, gate, or opening can be set up with its own board placement points, allowing different barricade layouts for different scene objects.
Placement Features
- Configured barricade slots
- Door barricade support
- Window barricade support
- Gate and opening support
- Runtime board creation
- Solid board prefab models
- Custom opening setup support
🎒 Board & Nail Inventory
The system includes a simple inventory structure for barricade resources.
Players can collect boards and nails, then spend them while building barricades.
Inventory Items
- Boards
- Used as physical barricade pieces placed onto doors, windows, and openings.
- Nails
- Used as a building resource when securing boards into place.
📦 Pickup Prefabs
The package includes ready pickup prefabs for the core barricade resources.
Included Pickups
- Board pickup prefab
- Nail crate pickup prefab
- Pickup interaction logic
- Demo pickup placement
- Resource collection example
🔨 Hammer / Build Progress
Boards can require hammering or build progress before becoming fully secured.
This allows barricading to feel more interactive instead of instantly placing a completed object.
Build Progress Features
- Per-board build progress
- Hammer interaction flow
- Progress-based board completion
- Configurable interaction logic
- Useful for tension during enemy attacks
❤️ Board Health & Destruction
Placed barricade boards can receive damage during gameplay.
Enemies, scripted events, or custom gameplay systems can damage barricades, eventually destroying boards and opening the way.
Damage Features
- Board health values
- Runtime damage
- Board destruction
- Enemy attack support
- Custom damage integration
- Destruction event hooks
🧟 Enemy Barricade Attacker
A sample enemy attacker is included to demonstrate barricade damage behavior.
The sample attacker can be used for testing or replaced with your own enemy AI.
Enemy Attack Features
- Sample barricade attacker
- Runtime board damage
- Board destruction behavior
- Useful for zombie and survival gameplay
- Can be replaced with custom enemies
🔗 UnityEvent Hooks
Runtime Barricade System includes UnityEvent hooks so barricade behavior can be connected to other project systems without rewriting the core logic.
Connect Events To
- UI updates
- Sound effects
- Visual effects
- Quest objectives
- Enemy alerts
- Damage feedback
- Custom gameplay logic
🧩 Easy Integration
Core barricade logic is separated from the demo controller.
You can connect the system to your own player, input, UI, enemies, interaction framework, audio, VFX, and gameplay systems.
You Can Replace
- Demo player controller
- Input logic
- UI system
- Enemy behavior
- Sound system
- VFX system
- Quest integration
🧪 Ready Demo Scene
A complete demo scene is included so developers can test the system immediately.
Demo Scene Includes
- Demo first-person player
- Interaction setup
- Board pickups
- Nail pickup crate
- Door barricade prefab
- Window barricade prefab
- Enemy attacker sample
- Runtime board placement
- Hammer/build progress
- Board damage and destruction
🎮 Suitable For
- 🧟 Zombie Games
- Let players block doors and windows while enemies attack and destroy barricades.
- 🌲 Survival Games
- Add resource-based barricading with boards, nails, and defensive preparation.
- 👻 Horror Games
- Create tense moments where players must reinforce entrances before threats arrive.
- 🏠 Base-Defense Games
- Build defensive barriers around player bases, rooms, or safe zones.
- 🔫 First-Person Projects
- Use the included demo player or connect barricades to your own FPS controller.
- 🧍 Third-Person Projects
- Connect the barricade system to a custom third-person interaction setup.
- 🤝 Co-op Projects
- Use the system as a foundation for shared barricading and defensive gameplay.
📦 Included
- Runtime barricade placement system
- Board inventory system
- Nail inventory system
- Board pickup prefab
- Nail crate pickup prefab
- Hammer/build progress logic
- Board health system
- Board damage and destruction
- Enemy barricade attacker sample
- Door barricade opening prefab
- Window barricade opening prefab
- Demo first-person player
- Interaction setup
- Solid prefab models using built-in Unity meshes
- Ready demo scene
- TXT documentation
- Markdown documentation
- PDF documentation
⚙️ Technical Details
Core System
- Runtime barricade placement for doors and windows
- Configured barricade slots
- Door and window barricade opening prefabs
- Solid prefab models using built-in Unity meshes
Inventory
- Board inventory system
- Nail inventory system
- Board pickup prefab
- Nail crate pickup prefab
Building
- Hammer/build progress per board
- Runtime board placement
- Board completion workflow
Damage
- Board health
- Board damage
- Board destruction
- Enemy barricade attacker sample
Events
- UnityEvent hooks for UI
- UnityEvent hooks for audio
- UnityEvent hooks for VFX
- UnityEvent hooks for quests
- UnityEvent hooks for custom gameplay
Demo
- Demo first-person player
- Demo interaction setup
- Ready demo scene included
Supported OS
Requirements
- Unity 2022.3 LTS or newer
- Built-in Render Pipeline compatible
- Uses Unity legacy Input Manager in demo scripts
📖 Documentation
Full English documentation is included in multiple formats and covers setup, usage, demo scene structure, prefabs, integration, and customization.
Included Formats
- TXT documentation
- Markdown documentation
- PDF documentation
Documentation Location
- Assets/Runtime Barricade System/Documentation/
🪵 Build Barricades at Runtime
Add board placement, nail resources, hammer progress, destructible barricades, enemy attacks, door/window prefabs, and survival defense gameplay to your Unity project.
Runtime Barricade System provides a ready-to-use foundation for barricading mechanics in survival, horror, zombie, base-defense, first-person, third-person, and co-op projects.