Click or drag to resize

IArticyFlowPlayerCallbacks Interface

Interface used together with ArticyFlowPlayer for notification of flow traversal events.

Namespace:  Articy.Unity
Assembly:  ArticyRuntime (in ArticyRuntime.dll) Version: 1.0.3
Syntax
C#
public interface IArticyFlowPlayerCallbacks

The IArticyFlowPlayerCallbacks type exposes the following members.

Methods
  NameDescription
Public methodOnBranchesUpdated
Called when the traversal found multiple branches and/or when the execution paused because of a PausedOn, or it found a dead end.
Public methodOnFlowPlayerPaused
Called when the traversal has found a valid stop target, or when the execution has reached a dead end.
Top
Remarks

Implement this interface on your game object, that hosts an ArticyFlowPlayer to be notified about its traversal events.

Both methods are always called one after another, in always the same order OnFlowPlayerPaused(IFlowObject) first and OnBranchesUpdated(IListBranch) second.

Common use cases for OnFlowPlayerPaused(IFlowObject) are to show the paused node to the UI in a Dialogue for example or parse its Data/Template and simply continue using one of the Play methods, without displaying it.

Common use case for OnBranchesUpdated(IListBranch) is to build a list of branching options; create UI controls for each branch and display them on the UI.

See Also