大约有 148 项符合查询结果, 库内数据总量为 30,779 项。 (搜索耗时: 0.0050 秒)
调用Laya.Browser.window.location.reload在手机真机中会造成短暂闪烁 在手机APP环境中使用Laya.Browser.window.location.reload时,程序会将渲染停止,1-2秒后再重新启动游戏。但在安卓手机真机环境中,在这段重启的时间内,渲染层级在最顶层...
来源: Laya_社区 发布时间: 20220317
...bj\endLess\src' at E:\developer\LayaAirIDE_beta\resources\app\node_modules\browser-resolve\node_modules\resolve\lib\async.js:46:17 at process (E:\developer\LayaAirIDE_beta\resources\app\node_modules\browser-resolve\node_modules\resolve\lib\async.js:173:43) at ondir (E:\developer\LayaAirIDE_beta\reso...
来源: Laya_社区 发布时间: 20190324
...,目前大部分的接解决方案是加一个条,机型判定! if(Browser.onIPhoneX = Browser.onIPhone && (Math.min(Browser.clientHeight,Browser.clientWidth) == 375 && Math.max(Browser.clientHeight,Browser.clientWidth) == 812) )目前是用屏幕比例进行判断的! 15...
来源: Laya_社区 发布时间: 20180507
...anvas时候报错。代码如下:var rankTexture = new Laya.Texture(Laya.Browser.window.sharedCanvas); rankTexture.bitmap.alwaysChange = true;//小程序使用,非常费 let sprite = new Laya.Sprite(); sprite.graphics.drawTexture(rankTexture, 0, 0, rankTexture.width, rankTexture.height); this._c...
来源: Laya_社区 发布时间: 20190920
... catch(e){}if(!Storage.support)console.log('LocalStorage is not supprot or browser is private mode.')"); } 改成 public static function init():void { __JS__("try{Storage.items=window.localStorage;Storage.setItem('laya', '1');Storage.removeItem('laya');Storage.support = window.localStorage != nul...
来源: Laya_社区 发布时间: 20180703
...发demo The maximum heap size you can try is 2048MB - 16MB = 2032MB. Browsers currently don't support allocating anything larger than that. If you are running on a 32-bit browser, a HEAP size of 512MB or 768MB is about the maximum that is possible. 参照一下ue4 的回答 2019-09-06 0 0 ...
来源: Laya_社区 发布时间: 20190905
... { constructor() { super(); // 创建Video元素 let videoElmt: any = Laya.Browser.createElement("video"); Laya.Browser.document.body.appendChild(videoElmt); // 设置Video元素地样式和属性 videoElmt.style.zInddex = Laya.Render.canvas.style.zIndex + 1; videoElmt.src = getResURI("video/guide.m...
来源: Laya_社区 发布时间: 20180802
...ickshao 、qq771472501 Laya.timer.once(4000,this,function(){ console.log(Browser.window.sharedCanvas) var rankTexture=new Texture(Browser.window.sharedCanvas); rankTexture.bitmap.alwaysChange=true; console.log(rankTexture) LayaUISample.scoreview.graphics.drawTex...
来源: Laya_社区 发布时间: 20180310
...ext; var Geolocation = Laya.Geolocation; var Position = Laya.Position; var Browser = Laya.Browser; var Handler = Laya.Handler; // 百度地图 var map; var marker; var BMap = Browser.window.BMap; var convertor = new BMap.Convertor(); // Div用来显示地图 var mapDiv; var infoText; var scene; var ...
来源: Laya_社区 发布时间: 20170323
...D: Texture has not been initialized prior to a partial upload, forcing the browser to clear it. This may be slow. async.race.0._hash.e3a9c451.js%20line%20297%20%3E%20eval:4:30925 Error: WebGL: texSubImage2D: This operation requires zeroing texture data. This is slow. 如题 这可能是什么引起...
来源: Laya_社区 发布时间: 20171120