Skip to content

Behavior System Overview

Pro Behavior

The Behavior System is a Pro feature for editor-side automation. A behavior reacts to a tag-related event, checks whether it is allowed to run, evaluates its conditions, and then executes its actions.

Behaviors are stored in J2 Tag Behavior Library assets. They can be mapped to a TagSet, a group, or a single tag.

J2 Tag Behavior Library editor

The whole system can be understood as one pipeline: an event creates context, the mapping finds the relevant behavior, settings decide whether it can run, conditions are evaluated, and actions perform the result.

  1. Event Trigger

    Tag, Actor, Component, Asset, or manual trigger creates the execution context.

  2. Find Behavior

    J2 Tags resolves the matching Tag, Group, or TagSet behavior mapping.

  3. Check Settings

    Scope, enabled state, trigger mode, and behavior options decide if it may run.

  4. Evaluate Conditions

    Expressions and operators calculate whether the following actions should execute.

  5. Execute Actions

    Actions apply the behavior result: tags, diagnostics, logs, cleanup, or automation.

AreaPurpose
ToolbarSave, refresh, execute behaviors, toggle debug display, add expressions, and add actions.
OutlinerBehavior folders, groups, operators, expressions, and actions.
Main canvasCard-based sequence of expressions, operators, and actions.
Details panelInputs, outputs, literal values, bindings, colors, and other selected-card settings.

Expressions read data or calculate values. They are used for checks such as “does this Actor have another tag?” or “is the selected asset in the expected folder?”.

In the card view, expression cards are blue. They show inputs, outputs, bound values, and literal values.

Input overrides let a TagSet, group, or tag mapping provide different values without duplicating the behavior asset. This keeps one behavior reusable across multiple tag areas.

Cards are evaluated from top to bottom. Conditions created by expressions and operators apply to the actions below them. If several actions follow the same condition, they share that condition until new expression/operator cards change the evaluation state.

Manual-trigger behaviors can be executed from editor tooling. Event-triggered behaviors run when the matching tag, Actor, Component, or Asset event occurs.

Behaviors can be attached at three levels:

LevelUse for
TagSetDefault behavior for a whole defined tag collection.
GroupBehavior for a branch of related local tags.
TagBehavior for one concrete tag.

Group and tag mappings can inherit behavior from higher levels or provide local behavior sections. Use higher-level mappings for shared rules, and tag-level mappings when only one tag needs special handling.