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

大约有 622 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0048 秒)

321. 重力感应 Accelerator 发布微信游戏后失效。是因为什么? [ 63%]

...后失效。是因为什么? Accelerator.instance.on(Laya.Event.CHANGE, this, monitorAccelerator); function monitorAccelerator(acceleration, accelerationIncludingGravity, rotationRate, interval) {         let x = accelerationIncludingGravity.x;         let y = accelerationIncludingGravity....

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

322. native模式下webgl [ 63%]

...邀请: 与内容相关的链接 提交 2 个回复 大林 赞同来自: this.gl = laya.webgl.WebGL.mainContext; if (!this.gl) { throw new Error('Failed to get WebGL Context'); } gl的context取不到,为空。webgl的支持也显示为false 2018-09-10 0 0 分享 微博 QZONE 微信 皓雪树青 ...

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

323. 打包发布vivo,调试黑屏 [ 63%]

...续流程 Laya.ResourceVersion.enable("version.json", Laya.Handler.create(this, this.onVersionLoaded), Laya.ResourceVersion.FILENAME_VERSION);4-在成功回调中加载场景 onVersionLoaded(): void { //激活大小图映射,加载小图的时候,如果发现小图在大图合集里面,则优...

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

324. APP打包后运行效果与调试效果不一致(sprite,child) [ 63%]

...运行效果与调试效果不一致(sprite,child) Laya.timer.frameLoop(1,this,this.run()); public run():void{    var childs:Array<Laya.Sprite> = this._childs;    childs.sort(this.sortHandler); } public sortHandler(left:Laya.Sprite,right:Laya.Sprite):number{    return left.y-right.y; } ...

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

325. 销毁 new 出的带有 PhysicsCollider 的正方体模型报错 [ 63%]

销毁 new 出的带有 PhysicsCollider 的正方体模型报错 this.box = scene.addChild(new Laya.MeshSprite3D(new Laya.BoxMesh(1, 1, 1))) as Laya.MeshSprite3D; this.box.addComponent(Laya.PhysicsCollider); this.box.destroy();引擎版本 LayaAirIDE2.0_beta.5 报错: Uncaught TypeError: Cannot r...

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

326. [LayaAir3]addComponent(Laya.Rigidbody3D); 报错 [ 63%]

...节点被添加到舞台后     onEnable(): void {         let a = this.owner.getChildByName("Sprite3D") as Laya.Sprite3D;         console.log(a,typeof(a))         let aa = a.addComponent(Laya.Rigidbody3D);     }   报错 TypeError: Cannot read properties of undefined (reading &...

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

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

... 186*****260 赞同来自: Rickshao 、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)       LayaUISampl...

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

328. ios打包时xcode报错无法进入游戏 [ 63%]

...ength')] at line 338.然后我根据朋友的提示,把laya.core.js里的this._testWord改成了Text._testWord,然后重新编译构建,但结果还是报这个错,请问应该怎么办呢?谢谢 陌熙 黯夜 • 2019-09-28 20:03 有人回答了呢,而且这问题也已经解决了,嘻...

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

329. h5 js项目打包发布后报错 [ 63%]

...压缩就报这个错,版本1.7.6laya.ui.min.js:1  Uncaught TypeError: this.preinitialize is not a function     at i (laya.ui.min.js:1)     at i (laya.ui.min.js:1)     at i (laya.ui.min.js:2)     at mainUI (layaUI.max.all.js:14)     at Function.<anonymous> (laya.core.min.js:1)   ...

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

330. 急急 在线等 加载xml 后直播无法自动播放 附示例项目 [ 63%]

...目 LoaderPolicy.setup(URLResolver.solvePath("files.fst?"), Handler.create(this, function xload() : void { //无法播放 Laya.loader.load(URLResolver.solvePath("config.xml"), Handler.create(this, onConfigLoaded), null, Loader.XML); //直接调用可以正常播放 //onConfigLoaded(null); }));   ...

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