It was good, I just wanted to modify the script UnityProgress.js to change the Unity element when loading webGl to be custom, or at least not to display it.
function UnityProgress(unityInstance, progress) {
if (!unityInstance.Module)
return;
if (!unityInstance.logo) {
unityInstance.logo = document.createElement(“div”);
unityInstance.logo.className = “logo “+ unityInstance. Module.splashScreenStyle;
unityInstance.container.appendChild(unityInstance.logo);
}
if (!unityInstance.progress) {
unityInstance.progress = document.createElement(“div”);
unityInstance.progress.className = “progress “+ unityInstance.Module .splashScreenStyle;
unityInstance.progress.empty = document.createElement(“div”);
unityInstance.progress.empty.className = “empty”;
unityInstance.progress.appendChild(unityInstance.progress.empty);
unityInstance.progress.full = document.createElement(“div”);
unityInstance.progress.full.className = “full”;
unityInstance.progress.appendChild(unityInstance.progress. full);
unityInstance.container.appendChild(unityInstance.progress);
}
unityInstance.progress.full.style.width = (100 * progress) + “%”;
unityInstance.progress.empty.style.width = (100 * (1 -progress )) + “%”;
if (progress == 1)
unityInstance.logo.style.display = unityInstance.progress.style.display = “none”;
}
Delete the paragraph with the logo, and the error will be reported when you open it.
Putting the original version on it doesn’t work, all webgl accessed through the link reported this error. Restarting the computer does not work
I guess it might be related to MIME. After adding .unity3d and .unityweb to MIME, the duplicate error is reported, but it can only be deleted, and the MIME service and all related services are restarted.
Similar Posts:
- SyntaxError: missing ; Problem record of before statement
- [Solved] DOM adds elements to HTML Error: Failed to execute ‘appendChild’ on ‘Node’: parameter 1 is not of typ…
- [Solved] DOM Add Element to HTML Error: Failed to execute ‘appendChild’ on ‘Node’: parameter 1 is not of type ‘Node’
- [Solved] echart Error: Can’t get dom width or height
- [Solved] Chrome Browser uploads files for a long time interrupts and reports an error: net :: ERR_NETWORK_IO_SUSPENDED
- Solve the problem that the highlighted content exceeds the visual area when the introjs scroll bar appears
- Setting and Research on splash of unity startup interface (logo is too large and background is fuzzy)
- Typeerror: error # 1009: the property or method referenced by an empty object cannot be accessed.
- Warning: Input is changing an uncontrolled input of type text to be controlled…