大约有 1,493 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0101 秒)
Laya_社区(918) Laya2.0_文档(193) Laya_示例(125) Laya2.0_示例(101) Laya3.0_api(79) Laya3.0_文档(73) laya_api(2) Laya2.0_api(2)
...w Laya.Animation(); roleAni.loadImages(); roleAni.play(); Laya.stage.addChild(roleAni); 这样就会报路劲错误 var urls = [ 'img/food/f1.png', 'img/food/f2.png', 'img/food/f3.png', 'img/food/f4.png', 'img/food/f5.png', 'img/food/f6.png', 'img/food/f7.png', 'img/food/f8.png', 'img/f...
来源: Laya_社区 发布时间: 20170718
.../ui/bg.png"); bg.sizeGrid = "40,10,5,10"; bg.width = 150; bg.height = 250; addChild(bg); var image:Image = new Image("resource/ui/image.png"); addChild(image); var button:Button = new Button("resource/ui/btn_close.png"); button.name = Dialog.CLOSE;//设置button的name属性值。 button.x = 0; butt...
来源: Laya3.0_api 发布时间: 20231115
...两个节点) //添加自定义模型 var box: Laya.MeshSprite3D = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1, 1, 1))) as Laya.MeshSprite3D; box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); var material: Laya.BlinnPhongMaterial = new Laya.BlinnPhongMaterial();...
来源: Laya_社区 发布时间: 20190717
...Images(["war/hero_fly1.png", "war/hero_fly2.png"], "hero_fly"); Laya.stage.addChild(animation); animation.play(0, true, "hero_fly"); } } } 假如使用注释里的LoadImage()则可以 2016-10-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...
来源: Laya_社区 发布时间: 20161026
...;//设置 progressBar 的value值改变时执行的处理器。 Laya.stage.addChild(progressBar);//将 progressBar 添加到显示列表。 Laya.timer.once(3000, this, changeValue);//设定 3000ms(毫秒)后,执行函数changeValue。 } private function changeValue():void { trace("改变进度...
来源: Laya3.0_api 发布时间: 20231115
...} Animation.createFrames(url,"myFighter"); fly=new Animation(); Laya.stage.addChild(fly); fly.play(0,true,"myFighter"); } } 其他案例请参考:LayaAir开发实战-------Role.as文件也有相关使用方式,仅供参考。 2016-06-13 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个...
来源: Laya_社区 发布时间: 20160610
...我代码导致还是就是有这问题呢 this.yzsAni.play(); Laya.stage.addChild(this.yzsAni); 连续调用不同动画的play,经常会出现动画不动的问题是我代码导致还是就是有这问题呢 2017-11-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...
来源: Laya_社区 发布时间: 20171103
...rg.selectHandler = new Laya.Handler(this, this.onSelectChange); this.owner.addChild(rg); return rg; } private onSelectChange(index: number): void { console.log("你选择了第 " + (index + 1) + " 项"); } } 效果如图所示: (图3-1) Copyright ©Layabox 2025 all right reserved,powered by ...
来源: Laya3.0_文档 发布时间: 20251016
...=new Laya.Rectangle(-200,-200,300,300); mArmature.hitArea=rect; Laya.stage.addChild(mArmature); mArmature.on(Event.CLICK, this, onChangeSkin); mArmature.showSkinByName("goblin"); mArmature.play(0, false); mArmature.stop(); } function onChangeSkin() { console.log("执行了点击"); } })(); 附件 : ...
来源: Laya_社区 发布时间: 20170830
...自定义材质。 ```typescript //添加自定义模型 var box = scene.addChild(new Laya.MeshSprite3D(PrimitiveMesh.createBox(1, 1, 1))); //为了更好的表现该自定义shader我们去掉模型旋转,同时给摄影机添加了移动脚本 camera.addComponent(CameraMoveScript); //创建一个...
来源: Laya2.0_文档 发布时间: 20210715