condition-graph
# Condition Graph
Represent complex game conditions as AND / OR / NOT node trees. This keeps condition logic out of nested if blocks and lets designers configure gates in the inspector.
Structure
Quick Start
1. Create a ConditionGraph Asset
Create -> AchUtils/Condition/Condition Graph
Add nodes to Root in the inspector.
2. Evaluate Conditions
Node Types
CompareConditionNode
Compares numeric values.
AndConditionNode
Returns true only when all children evaluate to true.
OrConditionNode
Returns true when any child evaluates to true.
NotConditionNode
Inverts the child result.
ConditionContext API
Reuse contexts
Avoid allocating a new ConditionContext every frame. Keep one instance and update values with Set.
Use Cases
Custom Nodes
Add [Serializable] to make the node available through [SerializeReference] fields in the inspector.