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

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

151. sprite 添加点击事件没反应,对sprite设置了size也没用 [ 63%]

...a.stage.addChild(this.btn) ; this.btn.size(25,25) ; this.btn.on(Laya.Event.CLICK, this, music.music_voice_toggle); 代码是这样的 , 图片上传不了,代码直接贴上来 2017-08-03 0 0 分享 微博 QZONE 微信 cuixueying 赞同来自: 最好上传个能重现问题的Demo,只看代码...

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

152. 龙骨skeleton鼠标点击区域的设置 [ 63%]

...w Rectangle(-420,-680,420,680); mArmature.hitArea=rect; mArmature.on(Event.CLICK,this,onClick);    2016-11-22 0 0 分享 微博 QZONE 微信 asdf131 赞同来自: 于一个点为中心播放 :      this.mArmature = this.mFactory.buildArmature(0);         this.mArmatureSpr.addChild(this.mA...

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

153. Dialog [ 63%]

...Controller() {     Controller.super(this);      this.btn.on(Event.CLICK,this,function(){           this.destroy();     })  } Laya.class(Controller, "Controller", stUI); 2018-08-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...

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

154. worldroot [ 63%]

...(root, 0);   Laya.Physics.I.worldRoot = root;   Laya.stage.on(Laya.Event.CLICK, this, () => { Laya.Physics.I.worldRoot.x -= 50; });   设置worldRoot = 一个新的sprite后, 移动world root ,物理世界不会跟着一起移动 2018-11-26 添加评论 免费帖 --> 分享 微博 QZONE ...

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

155. playByFrame动画监听问题,真不会了。就一个小问题。监听不到动画结束。。。 [ 63%]

...错了?应该怎么用求教啊。。。。。 Laya.stage.on(Laya.Event.CLICK, this, function () {                 for (var i = 0; i < _outHitAllInfo.length; i++) {                     var name=_outHitAllInfo<em>.sprite3D.name;                     if(name=='ani...

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

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

...el.inspect(data, "SplitAtlasSetting"); this.contentPane = panel; panel.on("click_start_gen", this.startGen, this); } protected onShown() { (this.contentPane as IEditor.InspectorPanel).resetDefault(); this.title = "SplitAtlas"; this.setSize(450, 180); } } class SplitAtlasSetting { @IEditor.onLoad sta...

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

157. 鼠标右键监听无效 [ 63%]

...歌浏览器运行的,没有调用test方法 Laya.stage.on(Event.RIGHT_CLICK,this,test) 2019-10-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 李友涛 赞同来自: 你好,问题解决了吗 2019-12-17 0 ...

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

158. Image.loadImage 方法加载问题 [ 62%]

...rt class PublicSpaceItem extends Laya.Box  {   public static BTN_ENTRER_CLICK:string = "BtnEnterClick";   public _publicSpaceData:datasheet.PublicSpaceData;   private bg:Laya.Image;   private btnEnter:Laya.Button;   constructor()   {    super();    this.initUI();   }   private...

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

159. UI-RefreshList [ 62%]

...p(); } //点击标记文本 if (e.target.name == "flag" && e.type == Event.CLICK) this.onClickFlag(index); //点击删除文本 if (e.target.name == "del" && e.type == Event.CLICK) this.onClickDel(index); } itemOnMouseUp(){ //抬起鼠标时,处理正打开的单元格 if (this.itemIsOpen) { var t...

来源: Laya2.0_示例 发布时间: 20251130

160. 使用对象池重复使用skeleton报错,请问有解决方案吗?谢谢 [ 62%]

...or() { trace("error"); }   function parseComplete() { Laya.stage.on(Event.CLICK, this, () => {     mArmature = Laya.Pool.getItemByClass('Skeleton', Laya.Skeleton);     mArmature.init(mFactory, 1);     mArmature.x = mStartX; mArmature.y = mStartY; mArmature.scale(0.5, 0.5); mArmature.on(Eve...

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