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

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

311. 给mesh添加物理组件就报错 [ 64%]

给mesh添加物理组件就报错 var mesh: Laya.MeshSprite3D = this.track._children[this.track.numChildren - 1]; var collider: Laya.PhysicsCollider = mesh.addComponent(Laya.PhysicsCollider);  var shape: Laya.MeshColliderShape = new Laya.MeshColliderShape(); shape.mesh = mesh.meshFilter.sharedMes...

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

312. Laya2.2.0,官方demo,Iphone Xs Max 14.0 锁屏小游戏卡死 [ 64%]

...onhide里面停止掉引起bug的代码 window['wx'].onShow((res) => { this.event(AppEvent.onShow, res); this.appStatus = AppEvent.onShow; console.log(this.appStatus, '---------'); Laya.stage.renderingEnabled = true//恢复渲染 Laya.updateTimer.resume() //恢复onUpdate Laya.timer.resume(); //...

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

313. Laya.loader.create()真机不能加载3D资源,加载图片和音频可以,打开调试也没问题 [ 64%]

...载进度         Laya.loader.create(res,null,Laya.Handler.create(this,this.onProgress,null,false)); 2020-11-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 1605953523用户 赞同来自: 我把资源放...

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

314. [LayaAir3]调用renderTexture.getDataAsync且同时勾选camera的hdr或msaa,webgl必报错 [ 64%]

...骤 1 新建个3D项目 2 在main.ts start里写 let camera:Laya.Camera = this.owner as Laya.Camera; let renderTexture:Laya.RenderTexture = camera._getRenderTexture(); let out:Uint8Array = new Uint8Array(50 * 28 * 4); let pixels:Uint8Array = await renderTexture.getDataAsync(0, 0, 50, 28, out) as Uin...

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

315. 寻路导航示例中添加Laya.PathFind组件报异常 [ 64%]

...下: //获取可行走区域模型 var meshSprite3D: Laya.MeshSprite3D = this.scene.getChildByName('Scenes').getChildByName('HeightMap') as Laya.MeshSprite3D; //使可行走区域模型隐藏 meshSprite3D.active = false; var heightMap: Laya.Texture2D = Laya.Loader.getRes("../../res/threeDimen/scen...

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

316. 官方例子,发现动作做完这个事件根本没有 [ 64%]

...个事件根本没有 //监听动画完成事件 roleAni.on(Event.COMPLETE,this,onAniComplete); 监听了,并没有什么发生 2017-09-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Supermang42 赞同来自:...

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

317. laya打包iOS,运行奔溃,构建时候选择的是2.3.0 [ 64%]

...信息是有个alert弹窗,上面的文字: exception info:[TypeError: this._nativeObj.addGlobalValueDefine is not a function.(In "this._nativeObj.addGlobal ValueDefine(modifyType, type, size, defaultData)", "this._nativeObj.addGlobalValueDefine" is undefined)] at line  4664. 附件 : --> 2020-02...

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

318. 微信开发者工具,打开Laya发布的包。编译报请先初始化小游戏适配库,详细教程 [ 64%]

...命名1112.png Wechat Lib:1.9.98, 2018.4.4 17:39:27 code.js:107 Warning!,this class[MiniAdpter] already exist: {init: ƒ} VM163:1 请先初始化小游戏适配库,详细教程https://ldc.layabox.com/doc/?nav=zh-ts-5-0-0 console.error @ VM163:1 Browser.__init__ @ code.js:7131 (anonymous) @ code.js...

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

319. laya.filters.ColorFilter_API3.0 [ 64%]

... Parameters brightness: number 亮度,范围:-100~100 Returns ColorFilter this adjustColor adjustColor(brightness: number, contrast: number, saturation: number, hue: number): ColorFilter Defined in laya/filters/ColorFilter.ts:102 调整颜色,包括亮度,对比度,饱和度和色调 Parameter...

来源: Laya3.0_api 发布时间: 20231115

320. 打包安卓后运行弹出异常 [ 64%]

...弹出异常 用新建的空白项目打包app后运行,直接出提示 this._nativeObj.addGlobalValueDefine is not a function(附件中有图),Native版本用的是:release-v2.0.2的 附件 : --> TestAndroidPro.rar 2020-07-07 添加评论 已悬赏10元 --> 分享 微博 QZONE 微信 没...

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