大约有 122 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0042 秒)
...代码写的不对,建议看看官网示例,附下正确代码 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
...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
...资源太大 无法上传 ,我把修改后的代码 还有 我的人物 role.lh 提交了, 只需要把 Role 放到 官方demo res文件夹下即可 附件 : --> src.rar 2019-04-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 ...
来源: Laya_社区 发布时间: 20190424
...amera.addComponent(CameraMoveScript); //添加蒙皮动画角色模型var role3D = Laya.loader.getRes("monkey/monkey.lh");//加载到场景scene.addChild(role3D);}这一段没有执行直接跳过了,没有报错。怎么加载.lani格式的帧动画?另外能否在页面中添加按钮,点...
来源: Laya_社区 发布时间: 20180531
...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
...大量文件加载失败: 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
...官方的案例上角色烘焙的例子也是这个问题,我是只用了role的资源,代码里面屏掉了另外一个随机角色,将此role的动画状态机循环连接起来自动切换,就出现这种闪屏跳帧的bug!已经在截图里面体现了,项目工程就是你们引擎...
来源: Laya_社区 发布时间: 20231106
...取 问题例子 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
...元件就可以有層級效果。 你可以先用代碼 getChildByName( RoleSP ) 抓取到角色層的 Sprite,再將角色添加到角色層的 Sprite( RoleSP.addChild( Role ) )。 2017-08-31 1 0 分享 微博 QZONE 微信 aaawanxiao 赞同来自: leeone 设置zOrder 关系来解决 2017-08-3...
来源: Laya_社区 发布时间: 20170627
...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