大约有 1,562 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0054 秒)
...a3d可不可以打2个以上的平行光?我试过一个scene只能同时addChild一个平行光,一个点光,一个聚光 2018-03-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 qian 赞同来自: 是的...
来源: Laya_社区 发布时间: 20180326
...iwe上, 不是直接加到Laya.stage上 this.hammer = new Hammer(); this.addChild(this.hammer); this.hammer.start(); 2018-08-15 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 Cherry006 相关问题 请问LayaAir中如何使图片以...
来源: Laya_社区 发布时间: 20180302
...导出的场景。 var scene = Laya.Scene.load('h5/3333d.ls'); Laya.stage.addChild( scene ); 附件 : --> 归档.zip 2017-12-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 qian 赞同来自: 你的模型 预...
来源: Laya_社区 发布时间: 20171227
...Open){ return; } this.isOpen=true; var testView=new TestView(); Laya.stage.addChild(testView); Laya.timer.once(200,this,this.removeUi,[testView]); } __proto.removeUi=function(ui){ if(ui!=null){ ui.destroy(); this.isOpen=false; } } 代码主要是做了重复打开关闭一个界面,调用界面...
来源: Laya_社区 发布时间: 20190517
...oaded)) })() function onLoaded() { var cMask = new maskDemoUI() Laya.stage.addChild(cMask) } })() 附件 : --> 2018-08-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: 能多提供一...
来源: Laya_社区 发布时间: 20180810
...ar ul:String in pics){ var mc:MovieClip = new MovieClip; mc.load(ul); this.addChild(mc); mc.on(Event.COMPLETE,this,stopNowMC) } } private function stopNowMC(e:Event):void{ trace(e.currentTarget); trace(e.target); MovieClip(e.currentTarget).gotoAndStop(MovieClip(e.target).count-1); } AS3代码是这...
来源: Laya_社区 发布时间: 20161221
...ction omTemLoaded():void { mArmature=mFactory.buildArmature(0); Laya.stage.addChild(mArmature); Laya.stage.on(Event.CLICK,this,onClick); mArmature.play(0,false);//设置初始位置 mArmature.index=this.index; mArmature.pos(500,500) } private function onClick():void { mArmature.play("stand",true);//...
来源: Laya_社区 发布时间: 20170509
...框, var selection = this.visualizeList.selection; selection.addChild(this.m_CenterDiv.imgSelect); } 第五个render也会有选中框,以前是list.cacheContent=true可以解决,现在如果设置list.cacheContent=true会出现拖动问题 2017-11-01 添加评论 免费帖 --> 分...
来源: Laya_社区 发布时间: 20171101
...Img(); img.on(Laya.Event.CLICK, this, switchImg) //点击事件 Laya.stage.addChild(img); function switchImg() { img.graphics.clear(); //清除绘制 var imgUrl = (this.flag = !this.flag) ? this.img1 : this.img2; img.loadImage(imgUrl, 100, 100) } }这是官方的切换位图的示例,但是点击...
来源: Laya_社区 发布时间: 20180502
...Panel组件橡皮筋效果无效 this._list = new Laya.Panel(); listParent.addChild(this._list); this._list.vScrollBarSkin = ""; this._list.vScrollBar.elasticDistance = 100; 我设置了vScrollBar的elasticDistance 属性,但是并没有橡皮筋的效果。可是List组件又可以,这个是Lay...
来源: Laya_社区 发布时间: 20170901