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

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

51. unity导出3d默认模型。代码添加网格碰撞必先错误 [ 69%]

...代码写的不对,建议看看官网示例,附下正确代码   this.role = scene3D.getChildByName("Cube") as Laya.MeshSprite3D;  let phy: Laya.PhysicsCollider = this.role.addComponent(Laya.PhysicsCollider) as Laya.PhysicsCollider; let mesh:Laya.Mesh = Laya.loader.getRes("res/Conventional/Lib...

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

52. Laya.loader.create 进度回调函数执行两次 [ 69%]

...create 进度回调函数执行两次 Laya.loader.create(["Main/SMain.ls","Role/Role.lh"],Laya.Handler.create(this,this.on3DComplete),Laya.Handler.create(this,this.onProgress,null,false)); Manager.prototype.onProgress = function(value) { console.log("value=="+Math.floor(value*100)+"%"); }   输出...

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

53. 2.0.2引擎 粒子拖尾 再微信开发者工具上不拖尾 [ 69%]

...资源太大 无法上传 ,我把修改后的代码 还有 我的人物 role.lh 提交了, 只需要把 Role 放到 官方demo res文件夹下即可 附件 : --> src.rar 2019-04-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 ...

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

54. 3D模型加载帧动画的问题 [ 68%]

...amera.addComponent(CameraMoveScript); //添加蒙皮动画角色模型var role3D = Laya.loader.getRes("monkey/monkey.lh");//加载到场景scene.addChild(role3D);}这一段没有执行直接跳过了,没有报错。怎么加载.lani格式的帧动画?另外能否在页面中添加按钮,点...

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

55. 解析sk资源报错 [ 68%]

...outside the bounds of the DataView   代码: package com.ppt.components.role {     import laya.ani.bone.Skeleton;     import laya.ani.bone.Templet;     import laya.events.Event;          public class CombatRole extends BaseRole     {         private var _templet:Templet; ...

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

56. [LayaAir3]laya3.2.4官方2d入门示例 导出微信小游戏无法运行 [ 68%]

...大量文件加载失败: laya.core.js:5528 Failed to load 'resources/UI/role/mc/runDown.mc' laya.core.js:5528 Failed to load 'resources/UI/role/spineAni/dragon.sk' Failed to load 'resources/sound/destroy.wav' 附件 : --> 2025-06-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...

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

57. layaair3.0.7出现动画烘焙后各种错乱跳帧bug!!! [ 68%]

...官方的案例上角色烘焙的例子也是这个问题,我是只用了role的资源,代码里面屏掉了另外一个随机角色,将此role的动画状态机循环连接起来自动切换,就出现这种闪屏跳帧的bug!已经在截图里面体现了,项目工程就是你们引擎...

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

58. ide创建的.ani文件中的属性pivotX和pivotY,代码中animation实例中要怎么获取 [ 68%]

...取 问题例子 var ani:Animation = new Animation(); ani.loadAnimation("role.ani"); var gra:Graphics = ani.frames[0]; var texture:Texture = gra._one[0];//取得纹理 //如何取得纹理的pivotX和pivotY 如何取得role.ani配置中的pivotX和pivotY 2018-02-03 添加评论 免费帖 --> 分享 ...

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

59. IDE创建的UI 层级问题 [ 67%]

...元件就可以有層級效果。   你可以先用代碼 getChildByName( RoleSP ) 抓取到角色層的 Sprite,再將角色添加到角色層的 Sprite( RoleSP.addChild( Role ) )。 2017-08-31 1 0 分享 微博 QZONE 微信 aaawanxiao 赞同来自: leeone 设置zOrder 关系来解决 2017-08-3...

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

60. Laya.timer.frameLoop(1, this, this.aaa);对象移动会出现颤抖现象 [ 67%]

...eLoop(1, this, this.aaa); private bb:number = 6; private playerHB:logic.UI.role.PlayerHealthBar; private loadHp():void { this.playerHB = new logic.UI.role.PlayerHealthBar(); this.playerHB.pivotX = this.playerHB.width / 2; this.playerHB.pivotY = this.playerHB.height / 2; this.playerHB.y = 500; this.p...

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