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

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

361. 列表里的元素可以播放动画吗 [ 66%]

...   }              }              var lock :Button = cell.getChildByName("lock") as Button;              if(lock){                  lock.visible = HostData.array[index].lock;//默认角色购买锁定状态赋值           ...

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

362. 点击list的时候触发的e.target永远是被点击的item? [ 66%]

...nerated method stub var cell:Box=my_list.getCell(index) as Box; var my_btn:Button=cell.getChildByName("my_btn") as Button; var my_clip:Clip=cell.getChildByName("my_clip") as Clip; my_btn.on(Event.CLICK,this,onBtnClick,["my_btn"]); my_clip.on(Event.CLICK,this,onClipClick,["my_clip"]); } private funct...

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

363. 苹果上架问题, [ 66%]

...rectly to this message. Guideline 4.0 - Design Your app includes an update button or alerts the user to update the app, but the update button or alert does not link directly to the app’s page on the App Store. Please see attached screenshots for details. Next Steps To resolve this issue, please en...

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

364. 场景管理 · LayaAir3.3 · 引擎文档 · LAYABOX [ 65%]

...lass() export class NewScript extends Laya.Script { @property({ type: Laya.Button }) public uiBtn: Laya.Button; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { this.uiBtn.on(Laya.Event.CLICK, th...

来源: Laya3.0_文档 发布时间: 20251010

365. Cannot read property 'call' of undefined [ 65%]

...s/Company/Emerson-AirWar/EmersonGame/bin/libs/laya.core.js:724:59)    at Button.__proto.event (file:///Users/moos/Company/Emerson-AirWar/EmersonGame/bin/libs/laya.core.js:499:30)    at TouchManager.__proto.sendEvents (file:///Users/moos/Company/Emerson-AirWar/EmersonGame/bin/libs/laya.core.js:33...

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

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

...方法创建的对象,没办法绑定事件监听? var bt = new Laya.Button("comp/btn_start.png","测试按钮"); bt.on(Laya.Event.CLICK, this, this.click); Laya.stage.addChild(bt); function click() { console.log("??????????"); } 点击之后没有翻译,按钮也...

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

367. 关于自定义组件使用方式 [ 65%]

...是其中的一部分! 1.将附件中bin/js/component文件夹中的ScaleButton.js和ScaleButton.xml文件放到下图所示的位置: 2.完成第一个步骤之后切换到文档页面,将第4个大步骤完成 3.这时组件已经能够在UI面板正常显示了,这时先不要着急导出...

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

368. Cannot read property 'call' of undefined [ 65%]

...s/Company/Emerson-AirWar/EmersonGame/bin/libs/laya.core.js:724:59)    at Button.__proto.event (file:///Users/moos/Company/Emerson-AirWar/EmersonGame/bin/libs/laya.core.js:499:30)    at TouchManager.__proto.sendEvents (file:///Users/moos/Company/Emerson-AirWar/EmersonGame/bin/libs/laya.core.js:33...

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

369. [LayaAir3]插件开发中,我需要选择文件夹,如何可视化选择文件夹 [ 65%]

...operties: ["openDirectory"], }, type: "string", }, { name: "", inspector: "Buttons", options: { buttons: [{ caption: "生成", event: "click_start_gen" }] } } ] } ]); Editor.extensionManager.createSettings("SplitAtlasSetting", "project"); } } 2025-07-23 0 0 分享 微博 QZONE 微信 LayaAir小牛 ...

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

370. Layabox web 复制一段文字到剪贴板 [ 65%]

...; if (this.confirmBtn == null) { this.confirmBtn = document.createElement("button"); this.confirmBtn.id = "confirm"; this.confirmBtn.innerText = "确定" this.MyBtn.appendChild(this.confirmBtn); } this.newMask = document.createElement("div");  this.modlueDiv.style.visibility = "visible";  var clip...

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