babylonjs-重写loading动画

40次阅读

共计 486 个字符,预计需要花费 2 分钟才能阅读完成。

参考链接:https://doc.babylonjs.com/how…

function customLoadingScreen() {console.log("customLoadingScreen creation") 
} 
customLoadingScreen.prototype.displayLoadingUI = function () {console.log("customLoadingScreen loading")  
    loadingScreenDiv.innerHTML = "loading"; 
}; 
customLoadingScreen.prototype.hideLoadingUI = function () {console.log("customLoadingScreen loaded") 
    loadingScreenDiv.style.display = "none";
}; 
var loadingScreen = new customLoadingScreen(); 
engine.loadingScreen = loadingScreen; 
engine.displayLoadingUI();

正文完
 0