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

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

1361. 关于as版的Animation.createFrames()不能工作? [ 48%]

...LayaUISample() { Laya.init(1540, 990); Laya.Stat.show(); Laya.loader.load("res/atlas/war.json", Laya.Handler.create(this, this.onLoaded), null, Laya.Loader.ATLAS); Laya.loader.on(Event.ERROR, this, onError); } protected function onError(error:String):void { trace(error); } protected function onLoade...

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

1362. 官方DynamicBatchTest照做为什么动态合不了批? [ 48%]

...ue, false); camera.addComponent(CameraMoveScript);   Laya.Texture2D.load("res/threeDimen/layabox.png", Laya.Handler.create(this, function (tex) { var radius = new Laya.Vector3(0, 0, 1); var radMatrix = new Laya.Matrix4x4(); var circleCount = 50;   var boxMesh = Laya.PrimitiveMesh.createBox(0.02, 0...

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

1363. 老师,请问一下如何在js代码中,动态的创建一个按钮(或者图片、lable)并添加到一个box中? [ 48%]

...来创建 var box=new Laya.Box(); var image=new Laya.Image(); image.skin='res/001.png'; var label=new  Laya.label(); label.text=' I am a  Label!' box.addChild(image); box.addChild(label); Laya.stage.addChild(box); 2017-04-21 1 3 分享 微博 QZONE 微信 zhang92tong 赞同来自: 太感谢老师...

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

1364. animate 动画播放 怎么把攻击 开火 合起来播放 [ 48%]

...动画图集,加载成功后执行回调方法 this.roleAni.loadAtlas("res/atlas/imgs/role/wp116.atlas", Laya.Handler.create(this, this.onLoaded)); } private onLoaded(): void { //添加到舞台 Laya.stage.addChild(this.roleAni); //创建动画模板dizziness Laya.Animation.createFrames(this.aniUr...

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

1365. spine适配版微信开发者平台报错 [ 48%]

...: static init(par: fgui.GComponent) { this.parent = par; this.aniPath = "res/sk/pipei.skel"; this.index = -1; this.startFun(); } static startFun() { if (!this.templet) this.templet = new Laya.SpineTemplet(Laya.SpineVersion.v3_8); this.templet.loadAni(this.aniPath); this.templet.on(Laya.Event.COMPLET...

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

1366. 【初学者】导入模型进行旋转结果出现问题 [ 48%]

...定义模型 var box : Laya.Sprite3D = scene.addChild(Laya.Sprite3D.load("res/Scene.lh")) as Laya.Sprite3D; box.transform.rotate(new Laya.Vector3(0, 0, 0), false, false); //旋转方向与角度设置 var vect:Laya.Vector3 = new Laya.Vector3(1,0,0); //每10毫秒旋转一次 Laya.timer.loop(10,null,...

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

1367. 设置自动竖屏后 打包APP 安装到手机后显示黑屏 不设置自动竖屏又正常 [ 47%]

...页面单独建立文件夹打包)             Laya.loader.load("res/atlas/gameUI.atlas",Handler.create(this,this.gameStart));                                   } 2018-01-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...

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

1368. [LayaAir3]LayaAir 3.3.0-beta.4目前出现的小概率问题反馈 [ 47%]

...出现层级下的显示消失. 5,至今我的项目还在出现lose skin res://985bc23d-e38c-4643-84e5-503b966f2b2c 在Button.js  这个提示,但是实际上并不影响显示. 以上只作为反馈,因为不影响开发,也不好复现. 2025-07-25 添加评论 免费帖 --> 分享 微博 QZONE ...

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

1369. 调用动画结束on方法,报错this.zombieAnimator.on is not a function [ 47%]

...mbieAnimator.on is not a function 创建官方示例3D Laya.Sprite3D.load("res/threeDimen/skinModel/Zombie/Zombie.lh", Laya.Handler.create(this, function(zombie:Laya.Sprite3D):void { scene.addChild(zombie); this.zombieAnimator = (zombie.getChildAt(0) as Laya.Sprite3D).getComponent(Laya.Animator) as ...

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

1370. ShaderPass介绍(TypeScript-3D基础(TS)-LayaAir3D之Shader) [ 47%]

...r MultiplePassOutlineMaterial.initShader(); //加载网格 Laya.Mesh.load("res/threeDimen/skinModel/LayaMonkey/Assets/LayaMonkey/LayaMonkey-LayaMonkey.lm", Laya.Handler.create(this, function(mesh) { var layaMonkey = scene.addChild(new Laya.MeshSprite3D(mesh)); layaMonkey.transform.localScale = new L...

来源: Laya2.0_文档 发布时间: 20210715