unity-visitor-pattern
CommunityModular in-game stat modifiers with Visitor.
Software Engineering#unity#gamedev#scriptableobject#design-pattern#visitor-pattern#powerups#stat-modification
AuthorMuharremTozan
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Decouples operations on Unity components by applying external logic without modifying their core classes, enabling clean stat modifications and power-ups while reducing logic leakage.
Core Features & Use Cases
- Double Dispatch: Route operations to the correct component types at runtime.
- Scriptable Visitors: Create data-driven visitors that designers can configure in the Inspector.
- Decoupled Logic: Keep game components free from direct logic responsibility, enabling reusable operations across multiple types.
Quick Start
Create a VisitableComponent, implement a ScriptableVisitor, and trigger visitation through a VisitorTrigger to apply power-ups at runtime.
Dependency Matrix
Required Modules
None requiredComponents
referencesassets
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: unity-visitor-pattern Download link: https://github.com/MuharremTozan/Ohm-Yura/archive/main.zip#unity-visitor-pattern Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.