Its hard to say if these were the only fixes done to improve the WebGL build between 2.4 and 2.6, but if I know most issues were caused by some incompatibilities with the Fuzzy AI algorithm.
Under AIInfo.cs, look for this code segment (line 419):
public static readonly string Rule_NOT = " NOT ";
public static readonly string Debug_NOT = " NOT ";
And change it to this:
#if UNITY_WEBGL && !UNITY_EDITOR
public static readonly string Rule_NOT = "";
public static readonly string Debug_NOT = "";
#else
public static readonly string Rule_NOT = " NOT ";
public static readonly string Debug_NOT = " NOT ";
#endif
Then, under RuleBaseAI.cs, look for this code segment (line 1713):
this.inferenceEngine.SyncCalculateOutputs(requestedOutputs);
this.aiOutput = this.inferenceEngine.Output;
And change it to this:
if (UFE.config.aiOptions.multiCoreSupport && Application.platform != RuntimePlatform.WebGLPlayer){
this.inferenceEngine.AsyncCalculateOutputs(requestedOutputs);
}else{
this.inferenceEngine.SyncCalculateOutputs(requestedOutputs);
this.aiOutput = this.inferenceEngine.Output;
}
If for some reason you can't find these segments, try replacing both files from your current project with the ones available on version 2.6. Its highly unlikely these files got changed in your project.
Like UFE? Please rate and review us on the
Asset Store!
Questions about the Forum? Check out our
Karma FAQ.
Don't forget to check our
discord channel.