• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 262 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0041 秒)

51. scaleMode设为full时怎么pc浏览器跟平板上效果不一样? [ 77%]

...浏览器跟平板上效果不一样? public function Main() { Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.bgColor = "#232628"; Laya.stage.scaleMode = Stage.SCALE_FULL; Laya.stage.screenMode = Stage.SCREEN_NONE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.alignV ...

来源: Laya_社区 发布时间: 20171124

52. laya2.0引入第三方库失败 [ 77%]

...D\src\script' at D:\Program Files\LayaAirIDE2.0\resources\app\node_modules\browser-resolve\node_modules\resolve\lib\async.js:55:21 at load (D:\Program Files\LayaAirIDE2.0\resources\app\node_modules\browser-resolve\node_modules\resolve\lib\async.js:69:43) at onex (D:\Program Files\LayaAirIDE2.0\resou...

来源: Laya_社区 发布时间: 20190220

53. 关于微信小游戏渲染子域图的问题 [ 77%]

关于微信小游戏渲染子域图的问题 new Texture(Browser.window.sharedCanvas); 上面这句报错: gameThirdScriptError value._addReference is not a function TypeError: value._addReference is not a function     at Texture.<anonymous> (http://127.0.0.1:10656/game/js/bundle.js:1518...

来源: Laya_社区 发布时间: 20181123

54. socket 注册message出错 [ 77%]

...ace\LayaAir\6\bin\h5\LayaSample.max.js:7277                 Browser._window.addEventListener('message',function(e){                                 ^ TypeError: Browser._window.addEventListener is not a function     at Function.Browser.__init__ (D:\wo...

来源: Laya_社区 发布时间: 20180727

55. 关于微信小游戏关系链的问题 [ 77%]

...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

56. 火狐浏览器上webgl异常 [ 76%]

...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

57. 使用Laya.loader.load加载Laya.Loader.FONT位图字体文件时就会出现无限循环加载,一直到浏览器奔溃 [ 76%]

...t fontName = "diyFont";   class Text_BitmapFont { constructor() { const  Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat;   // 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.height, WebGL);   Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.s...

来源: Laya_社区 发布时间: 20190221

58. [LayaAir3]Laya3.3发布支付宝小游戏报错 [ 76%]

...始运行就报错:     找到源码部分是: onInitRender() { if ((t.Browser.onAlipayMiniGame || t.Browser.onTBMiniGame) && t.LayaGL.renderEngine._supportCapatable.turnOffSRGB(), t.Browser.onTBMiniGame && !t.PAL.g.isIDE) { let e = t.LayaGL.renderEngine._context; e.pixelStorei(e...

来源: Laya_社区 发布时间: 20250625

59. laya2.0里bundle.js删除之后为什么不会重新生成了,改原来的代码又不生效 [ 76%]

...xxxxxx\src\gameParts' at D:\LayaAirIDE_200_beta\resources\app\node_modules\browser-resolve\node_modules\resolve\lib\async.js:55:21 at load (D:\LayaAirIDE_200_beta\resources\app\node_modules\browser-resolve\node_modules\resolve\lib\async.js:69:43) at onex (D:\LayaAirIDE_200_beta\resources\app\node_mo...

来源: Laya_社区 发布时间: 20181024

60. [0]Spine3.8.75报错:Error: Unsupported skeleton data, please export with a newer version of Spine. [ 76%]

...法使用。代码是使用的2.12.2beta1引擎示例的源码。   var Browser = Laya.Browser; var WebGL = Laya.WebGL; var Stage = Laya.Stage; var Event = Laya.Event; var Stat = Laya.Stat; var SpineTemplet = Laya.SpineTemplet; class SpineBinary {     constructor() {         this.aniPath = "r...

来源: Laya_社区 发布时间: 20211013