[metaworks.js][internal API] mw3._importFaceHelper = function(actualFace, onSuccess, onError) - TheOpenCloudEngine/metaworks GitHub Wiki

Import face helper (ejs.js) for given actualFace. If there's existing loaded face helper script already, this operation will be ignored. This function doesn't create face helper instance. Just import the script only.

Parameters

  • actualFace is the url for the face (ejs)
  • onSuccess function will be invoked a new facehelper script has been imported successfully.
  • onError function will be invoked when importing facehelper has been failed.

Operations

  • Creates the face helper script url to call the importScript function.
  • Set the call order for the facehelper scripts since it is called whenever object is rendered.
  • call the importScript function to import the script.