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

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

321. laya3.0中jszip使用异常 [ 64%]

...oad([{ url: zipUrl, type: Laya.Loader.BUFFER }], null, Laya.Handler.create(this, this.onLoadCfg, null, false)).then(             (value) => {                 JSZip.loadAsync(value).then(                     (zipData: JSZip) => {                         conso...

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

322. texture2D的setPixel纹理rgba数据之后会随着窗口的缩放,渐变成黑色 [ 63%]

...Laya.Vector3(-1.0, -1.0, -1.0)); directionLight.transform.worldMatrix=mat; this.sprite3D = scene.addChild(new Laya.Sprite3D()) as Laya.Sprite3D; //正方体 var box = this.sprite3D.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createPlane())) as Laya.MeshSprite3D; this.box = box; box.transform.p...

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

323. [LayaNative3]LayaNative在安卓上播放音效后会一直输出报错日志 [ 63%]

...AudioChannel.prototype["onPlayAgain"] = function onPlayAgain(): void { if (this._ele == null) { console.warn(`HTMLAudioChannel.onPlayAgain _ele is null, url=${this.url}`); return; } return window["Laya.HTMLAudioChannel.onPlayAgain"].call(this); } 你可以试试暂时重写这个方法 等修复了...

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

324. 跟视频做出现这个问题。怎么破 求解 [ 63%]

...ions;    //给男角色模型设定贴图动画          var manAni=this.roleMan.addComponent(SkinAnimations);          manAni.url="3d/man/hero.ani";          manAni.player.play();     2017-06-17 0 0 分享 微博 QZONE 微信 leeone 赞同来自: Warning: discard property,please ...

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

325. 重力感应 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

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

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

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

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

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

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

330. 销毁 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