This Unity package provides a Modular Behavior System.
It is designed to easily add and manage various behaviors on game objects.
Each behavior is structured as an independent module, offering excellent reusability and maintainability.
The system consists of three core components:
-
Setting
Holds immutable or semi-immutable data at runtime. -
Context
Represents the current state during runtime. -
Processor
The unit that executes the actual behavior logic.
- Setting, Processor, and Context can be easily configured in the Inspector.
- Designers and developers can collaboratively adjust behaviors intuitively.
- Various behaviors can be created by changing the Processor composition.
- Provides high extensibility and reusability.
- Causes almost no GC allocations during runtime.
- Helps prevent frame drops and improves performance.
Install via Git URL in the Unity Package Manager.
https://github.com/Armangi1312/unity-am-modular-behavior-system.git
Select "Add package from Git URL" in the Package Manager and enter the URL above.
Add Setting, Processor, and Context in the Inspector to configure behaviors.
+button: Add a Processor-button: Remove a Processor- Drag to reorder (adjust priority)
Cannot be modified during runtime.
- Can be added in the same way as Processors.
- Settings and Contexts required by a Processor are added automatically.
For detailed code explanations and examples, refer to the documentation below.


