Global Object - World

For each scene, there is an independent context called World, which is accessed by this in the running function of hooks and steps.

JavaScript
function World({attach, parameters}) {
  this.attach = attach
  this.parameters = parameters
}

  • attach: A function used to add attachments to hooks/steps
  • parameters: parameter object passed in via command line

Chinese version click here.

results matching ""

    No results matching ""