Here is what i trying. I am loading a this code in a js file on my site. Error seams to be util.js is not getting loaded

// ==UserScript==
// @require       utils.js
// ==/UserScript==

window.Unity = external.getUnityObject(1.0);

function setupMyApp(){
    var total = 10;

Unity.init({ name: "MyApp",
    iconUrl: "http://localhost:5000/static/icons/icon.png",
    onInit: wrapCallback(setupMyApp)

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.