Skip to main content
Flow Core Documentation
Menu

Flow Interaction

Interaction Design with Flow Interaction

Separate actor-side target selection from object-side interaction response.

Audience
Gameplay designers and developers
Time
10 minutes
Requires
An actor and at least one interactable object
Modules
Flow Interaction
On this page

Flow Interaction models an actor choosing and using an object. The Flow Interaction Owner scans and selects. The Flow Interaction Target defines an available object, its interaction point, priority, and feedback. Graph logic decides the gameplay consequence.

Owner and Target

The Owner is the actor. It has a scan radius, selection mode, current target, optional explicit target, and Focus, Blur, and Interact events.

The Target is the object. It has a target radius, priority, local interaction point, availability, optional model root, optional Canvas feedback, and its own event routes.

Select the Owner and choose Open Full Configuration > Main for Mode, Radius, and, in Forward mode, Max Forward Angle. The Target’s Main page holds its own Radius, Priority, and Position Offset. In Play Mode, use Debug on the Owner to read Candidates and Target.

Three Target gizmos surround the Owner. Its Main page shows Forward selection, and Debug identifies Test Console as the single candidate.

The Owner uses Forward mode, Radius 2 and Max Forward Angle 70. In Play Mode, its Debug page reports one candidate, Test Console, which the Owner can interact with.

Runtime sequence

flowchart LR A["Owner scans"] --> B["Collect valid Targets"] B --> C["Select by mode and priority"] C --> D{"Target changed?"} D -->|Yes| E["Blur previous"] E --> F["Focus next"] D -->|No| G["Keep focus"] F --> H["Interact request"] G --> H H --> I["Owner event, then Target event"]

Focus is selection feedback, not the gameplay action. Blur removes that focus. Interact occurs only when requested and the current Target remains valid. Keep inventory changes, dialogue starts, pickups, and other consequences on the Interact route.

Choose a selection mode

ModeUse forDesign effect
NearestPickups and forgiving proximity useThe lowest distance minus Target priority wins.
ForwardConversations and intentional object useWithin the allowed angle, closer and more directly faced Targets score better. Higher priority also helps.
ExplicitTutorials, lock-on, scripted moments, or UI selectionGraph logic assigns the target directly.

With equal priority, Nearest selects the closest Target. A higher priority can make a farther Target win within the actor’s reach.

Tune discoverability

  • Owner radius defines how far the actor can discover candidates.
  • Target radius makes large or important objects easier to include.
  • Forward angle controls how precise facing must be.
  • The local interaction point should match where the player expects to use the object, not necessarily its pivot.
  • Canvas feedback can explain focus, while graph-owned UI handles larger panels and consequences.

Module boundary

Flow Interaction does not own quests, dialogue content, inventory, or input bindings. It detects and routes intent. A graph may respond by playing a Flow Character Gesture, changing Flow Stats, activating a Camera Shot, or calling an external system.

The interaction video shows focus and use in an earlier Unity Editor layout.

Video · 2:02Flow Character and Flow InteractionSee character behavior and interaction routing cooperate in one observable slice.