Events

Corresponding events are executed respectively when Stage Objects/Tutorial Objects change their playing states.

In version 1.2, the event system are redesigned to encapsulate more events into Stage and Tutorial Objects. Users could enable individual events by clicking on different buttons in the Inspector.

  • OnStart: Event would be invoked when Stage/Tutorial starts.

  • OnUpdate: Event would be invoked every frame when Stage/Tutorial are in 'Start' or 'Executing' state.

  • OnExecuting: (Stage version)Event would be invoked when Stage completes starting Tutorial and adding trigger configuration. (Tutorial Object Version)Event would be invoked when all of Tutorial Object's modules are done showing.

  • OnEnding: Event would be invoked when StopStage/StopTutorial are called.

  • OnComplete: Event would be invoked when Stage/Tutorial Objects are completed.

Global Events

public event HSVGlobalStageEvent OnStageStart;

public event HSVGlobalStageEvent OnStageUpdate;

public event HSVGlobalStageEvent OnStageExecuting;

public event HSVGlobalStageEvent OnStageEnding;

public event HSVGlobalStageEvent OnStageComplete;

Please use these events to listen to different state of running Stage Objects. The parameter in the callback contains running Stage Objects.

public event HSVGlobalTutorialEvent OnTObjStart;

public event HSVGlobalTutorialEvent OnTObjUpdate;

public event HSVGlobalTutorialEvent OnTObjExecuting;

public event HSVGlobalTutorialEvent OnTObjEnding;

public event HSVGlobalTutorialEvent OnTObjComplete;

Please use these events to listen to different state of running Tutorial Objects. The parameter in the callback contains running Tutorial Objects.

public event HSVUIMaskEvent OnDisplayTextChange;

Please use this event to change display text for certain tutorial object during runtime. The module parameter in the callback contains the tutorial object information.

Last updated