unity-visitor-pattern
Implements the Visitor pattern for decoupled operations on object structures. Perfect for PowerUp systems and complex stat modifications.
How do I install this agent skill?
npx skills add https://github.com/muharremtozan/unity-agent-skills --skill unity-visitor-patternIs this agent skill safe to install?
- Gen Agent Trust Hubpass
The skill provides standard C# templates for implementing the Visitor design pattern within Unity. No security risks or malicious patterns were identified.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
What does this agent skill do?
Unity Visitor Pattern
This skill provides a modular implementation of the Visitor pattern, specifically optimized for Unity systems where multiple component types need shared modification logic (e.g., PowerUps).
Core Features
- Double Dispatch: Safe and structured way to handle operations on multiple types.
- Scriptable Visitors: Data-driven logic providers that can be easily configured in the Inspector.
- Decoupled Logic: Keep your core components clean of "logic leakage" from external systems.
Core Files (Max 3)
VisitorCore.cs.txt: Base interfaces and visitable component base.ScriptableVisitor.cs.txt: Pro-path ScriptableObject implementation.VisitorExample.cs.txt: Concrete example for stat modification.
Usage
Refer to guide.md for implementation details and Pro/Light path distinctions.
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/muharremtozan/unity-agent-skills/unity-visitor-pattern">View unity-visitor-pattern on skillZs</a>