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

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

291. list如何如何获取选中的CheckBox,然后点击删除,将对应选中的条目删除掉。 [ 52%]

...过增加阻止冒泡的方式停止子对象往父对象的冒泡行为,event对象的stopPropagation方法; 2017-03-09 1 2 分享 微博 QZONE 微信 cry_11858 赞同来自: 求Demo。或者好一点的思路。 2017-03-09 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠...

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

292. 2.0按钮添加事件报错 cannot read property 'on' fof undefined [ 52%]

...组件 layanative2 打包android平台 报错 btCollisionObject undefined event自定义事件的问题 IDE通过.ui自动生成的ui代码报错 怎么讲layaAir里的显示对象添加到matter.js里的物理引擎世界里 点击事件不起效 问题状态 最新活动: 2020-07-01 11:21 浏览: ...

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

293. laya.display.Sprite_API3.0 [ 52%]

...一个 Sprite 实例。 package { import laya.display.Sprite; import laya.events.Event; public class Sprite_Example { private var sprite:Sprite; private var shape:Sprite public function Sprite_Example() { Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef"...

来源: Laya3.0_api 发布时间: 20231115

294. Laya List给子元素添加事件后,滚动事件被劫持了 [ 52%]

... = 155; list.loadImage('xxx.png'); //此处无论是这样给 list.on(Laya.Event.CLICK, this, () => { console.log(413132131) }) //还是在handler中去渲染,都会滚动不了 txArray.push(list);} storeTxList.array = txArray;   Laya.stage.addChild(storeTxList);     悬赏找大神看问题...

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

295. laya.ui.CheckBox [ 51%]

...ll Classes | Index | Frames No Frames CheckBoxProperties | Methods | Events Packagelaya.uiClasspublic class CheckBoxInheritanceCheckBox Button UIComponent Sprite Node EventDispatcher Object CheckBox 组件显示一个小方框,该方框内可以有选中标记。 CheckBox 组件还可以显...

来源: Laya2.0_api 发布时间: 20190513

296. 新版版2d粒子问题?同样的代码,LayaAir IDE 2.1.0版本正常,LayaAir IDE 2.2.0beta2版本报错 [ 51%]

...版本正常,LayaAir IDE 2.2.0beta2版本报错    Laya.stage.on(Laya.Event.CLICK, this, () => {             Laya.loader.load("HallAni/star.part", Laya.Handler.create(this, (settings) => {                 let Particle2D = Laya.Particle2D;            ...

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

297. ls场景文件通过Laya.loader.create()预加载后stage.destroyChildren()出现异常Cannot read property 'visible' of null [ 51%]

...ll   附Demo。   想做不同场景之间的切换。 spriteBtn.on(Laya.Event.CLICK, this, function (e) { Laya.stage.destroyChildren(); newScene(); });问题:LayaAirUnityPlugin 1.1.0导出了 ls 场景文件,在通过Laya.loader.create()预加载后。在3次Laya.Scene.load()后,最后一...

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

298. 显示对象的mask缩放为0时遮罩效果不生效 [ 51%]

...ge.addChild(testSp); let i = 0; tmpMask.scaleX = i / 3; Laya.stage.on(Laya.Event.CLICK, this, ()=>{ i = (i + 1) % 4; tmpMask.scaleX = i / 3; }); 附件 : --> 2020-04-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个...

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

299. List选中项下滚会变 [ 51%]

...index",index); // } _proto_.onMouse = function(e,index){ if(e.type == Laya.Event.CLICK){ //console.log(e.type,index); if(this.selectedIndex !== index){ if(this.selectedIndex!==-1){ //之前选中的列表项的选中状态设置为false this.sList.setItem(this.selectedIndex,{ select : {label : "服...

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

300. 背景音乐来回切换报错 [ 50%]

...mainSound:Laya.SoundChannel = null;         this.btn_sound.on(Laya.Event.CLICK,this,function(){             dreamsSound = null;             if(mainSound == null){                 Laya.loader.load("res/main.mp3",Laya.Handler.create(this,function(){   ...

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