- Home /
WebGL - Customizing UnityLoader.js
Is there a way that we can add a template for UnityLoader.js to a WebGL template so that we can add custom code?
I'm hoping to be able to do something like this:
if(someCustomCondition){
...All Unity Generated UnityLoader.js code here...
} else {
...Some other custom code here...
}
Basically, I just want to wrap all of the UnityLoader.js code in an if statement. I'm currently doing this manually, which is a bit time consuming given that I have multiple builds.
Any way to automate this when making a build?
I'm using Unity 5.5.4.
Comment