LaunchURLWebGL | Integration | Unity Asset Store
把里面 LaunchURLWebGL.jslib 文件改成如下内容,这样可以不加入历史记录,下面就不显示菜单了 ,不晓得有什么更好的方法,这个也不是最优接,返回还的加个按钮切换
mergeInto(LibraryManager.library, {
LaunchURLWebGL_launchURL: function (url, windowName, windowFeatures) {
url = UTF8ToString(url);
windowName = UTF8ToString(windowName);
windowFeatures = UTF8ToString(windowFeatures);
document.documentElement.addEventListener('pointerup', function () {
window.location.replace(url);
//window.open(url, windowName, windowFeatures);
}, { once: true });
}
});