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

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

621. list中加的button不能接收点击事件 求一个list中加button的demo [ 91%]

...  }         let list = new Laya.List;         list.width = this.itemList.width;         list.height = this.itemList.height;         list.x = this.itemList.x;         list.y = this.itemList.y;         list.spaceY = 12;         list.vScrollBarSkin = ""...

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

622. 为什么这个ui中给这个TextInput组件runtime属性绑定了一个类 [ 91%]

...入"); // 是否缓存初始的文本提示字符串和文本颜色. if (!this.initText) { this.initText = this.textField.text ; this.initColor = this.textField.color ; }  // 如果是初始提示字符串, 就设置为空, 同时设置颜色和斜体. if (this.textField.text === this.initText) { t...

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

623. 粒子-粒子演示2 [ 91%]

..."../../"; Laya.loader.load("res/particles/RadiusMode.part", Handler.create(this, onAssetsLoaded), null, Loader.JSON); })(); function onAssetsLoaded(settings) { sp = new Particle2D(settings); sp.emitter.start(); sp.play(); Laya.stage.addChild(sp); sp.x = Laya.stage.width / 2; sp.y = Laya.stage.height...

来源: Laya_示例 发布时间: 20260303

624. 粒子-粒子演示3 [ 91%]

...../../"; Laya.loader.load("res/particles/particleNew.part", Handler.create(this, onAssetsLoaded), null, Loader.JSON); })(); function onAssetsLoaded(settings) { sp = new Particle2D(settings); sp.emitter.start(); sp.play(); Laya.stage.addChild(sp); sp.x = Laya.stage.width / 2; sp.y = Laya.stage.height...

来源: Laya_示例 发布时间: 20260303

625. laya接入fairyGUI的时候资源加载方式? [ 91%]

...es/MainMenu.fui", type: laya.net.Loader.BUFFER }     ], Handler.create(this, this.onLoaded)); 资源加载能用其他方式吗? 不可能一个一个加载吧 2019-11-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1...

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

626. tiledmap 可以在图块层的指定格子上添加Sprite吗 [ 91%]

...tructor(mapname:string, x:number, y:number){ super(); //显示登陆界面 this.tMap = new Laya.TiledMap() this.tMap.antiCrack = true //创建Rectangle实例,视口区域 var viewRect:Laya.Rectangle = new Laya.Rectangle(0, 0, Conf.App_Width, Conf.App_Height); //创建TiledMap地图 this.tMap.creat...

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

627. timer无法用clear清除的BUG [ 91%]

timer无法用clear清除的BUG 我又试了一下, 当loop函数用this绑定时,clear无法清除 ,clearAll可以清除 public function startLoop() {       Laya.timer.loop(2000,this,this.onLoop.bind(this)); }   private function onLoop():void {     if(this.stop){         Laya...

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

628. [LayaAirIDE3]【插件开发】配置方式可以生成非常复杂的界面的部分疑惑 [ 91%]

...").data; panel.allowUndo = true; panel.inspect(data, "SplitAtlasSetting"); this.contentPane = panel; this.title = "图集分割工具"; } protected onShown() { (this.contentPane as IEditor.InspectorPanel).resetDefault(); this.setSize(500, 250); this.contentPane.on("click_start_gen", this.startGen, t...

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

629. untiy导出的粒子特效有播放完成的回掉吗? [ 91%]

...ld(Sprite3D.load("fff.lh")) as Sprite3D; wjqs.once(Event.HIERARCHY_LOADED, this, function():void { var aaa:ShurikenParticleSystem = wjqs.getChildAt(0).getChildAt(0).particleSystem; aaa.on(Event.COMPLETE, this, function() { trace("COMPLETE callback!!"); }); }); 2017-05-15 0 1 分享 微博 QZONE ...

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

630. 请问如何使我的自定义类UIDropBox继承Laya.Sprite? [ 91%]

... Laya.Sprite; var Text = Laya.Text; function UIDropBox() { UIDropBox.super(this); this.txt = this.getTextFeild(); this.txt.y = 50; this.txt.text = 'aasassa'; console.log(this.addChild);//undefined console.log(this._super);//undefined this.addChild(this.txt); } Laya.class(UIDropBox, "UIDropBox", Spri...

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