This shows you the differences between two versions of the page.

Link to this comparison view

tutorial-master:2.0:data-validator [2019/04/10 17:23]
admin created
tutorial-master:2.0:data-validator [2019/04/10 17:44] (current)
Line 1: Line 1:
 ===== Data Validator ===== ===== Data Validator =====
-Data Validator is a feature introduced in 2.0.5, which checks every single field of a Tutorial ​and its stages. It's being run before a Tutorial ​is being played.+Data Validator is a feature introduced in 2.0.5, which ensures that Tutorials play with no runtime errors. No setup is required to make it work! 
 +Before ​Tutorial ​is played, ​its fields (including fields of the stages) are checked whether they're valid. If at least one field is not valid, it will print out which field of which stage of which tutorial is invalid. 
 +The data validation check is done after **OnTutorialEnter** is invoked. However, **OnTutorialPlay** won't be invoked unless data validation checks pass.
  • tutorial-master/2.0/data-validator.txt
  • Last modified: 2019/04/10 17:44
  • by admin