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

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

321. 鼠标事件:为什么没有设置穿透,也会发生穿透现象? [ 62%]

...             this.addChild(bg2);             bg2.on(laya.events.Event.MOUSE_DOWN,this,test); } ================== public static function createSprite(url:String,c:Boolean = false):Sprite {             var sp:Sprite = new Sprite();             sp.loadImage(url); ...

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

322. 如何获取实时更新的动态数据,数据在文本中 [ 62%]

....create(this,this.Onloaded),null,Laya.Loader.TEXT,0,true,null,true);*/ let event1=Laya.loader.load("eyeimf.txt", Laya.Handler.create(this, this.Onloaded), null, Laya.Loader.TEXT,0,true,null,true); //console.log(Laya.Loader.loadedMap); } 另外就是加载的时候,不缓存资源,就不能读取...

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

323. 获取挂点 能不能直接获取到深层子节点 [ 62%]

...获取不正确 分享:LayaAir下如何获取图集下的小图资源? Event.MOUSE_WHEEL 如何获取鼠标滚轮是放大开始缩小 如何获取图片每个像素点的RGB? 怎样获取浏览器地址传过来的GET参数 怎么获取对象的坐标 LayaAir使用AS语言能直接挂断点...

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

324. laya.components.AnimationClip2D_API3.0 [ 61%]

...earReference _removeReference _setCPUMemory _setCreateURL _setGPUMemory addEvent destroy duration event hasListener hermiteCurveSplineWeight isCreateFromURL off offAll offAllCaller on once destroyUnusedResources Object literals tween Constructors constructor new AnimationClip2D(): AnimationClip2D Ov...

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

325. 龙骨动画的监听回调,有时能回调,有时不能回调 [ 61%]

...c initTemplet(){ this.mFactory = new Laya.Templet(); this.mFactory.on(Laya.Event.COMPLETE, this, this.parseComplete); // this.mFactory.on(Laya.Event.STOPPED,this,this.parseComplete); this.mFactory.on(Laya.Event.ERROR, this, this.onError); this.mFactory.loadAni("res/games/Game_ddz/animation/ddz_figur...

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

326. 没有预加载的图片怎么获取width和height ? [ 61%]

...eying • 2017-01-18 12:21 再图片加载完成后,可以先侦听一个Event.LOADED事件,再回调里去获取getBounds值 qq502416708 • 2017-01-18 15:32 能写几句示例吗?图片是网络传过来的用户头像 cuixueying • 2017-01-19 15:38 就是获取你图片所在容器的getBo...

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

327. Laya.loader.load 加载场景报错 [ 61%]

...o.addChild (laya.core.js:13290) at Main.<anonymous> (Main.ts:148) at EventHandler.__proto.runWith (laya.core.js:1399) at ResInfo.__proto.event (laya.core.js:1156) at LoaderManager.__proto._endLoad (laya.core.js:14773) at Loader.onLoaded (laya.core.js:14743) at EventHandler.__proto.runWith (lay...

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

328. 关于遍历产生的sprite的点击事件,急,大神帮看哈 [ 61%]

...for遍历下对sp进行CLICK的监听即可,sp.size(xxx,xxx);sp.on(Event.CLICK,this,onSpClick) 3、点击sp时,直接获取sp.index值即可(e.target.index)! 2017-02-21 1 0 分享 微博 QZONE 微信 lift6220819 赞同来自: q395212409 Laya.init(640,1010); Laya.stage.scaleMode = Laya....

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

329. laya.d3.core.trail.TrailSprite3D [ 61%]

...asses | Index | Frames No Frames TrailSprite3DProperties | Methods | Events Packagelaya.d3.core.trailClasspublic class TrailSprite3DInheritanceTrailSprite3D RenderableSprite3D Sprite3D Node EventDispatcher Object TrailSprite3D 类用于创建拖尾渲染精灵。 Public Properties Hide Inheri...

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

330. list中的item类中的button注册事件不响应 是怎么回事呢 ?可以帮帮我解答下吗 [ 61%]

...this.size(Item.WID, Item.HEI); this.initBuild(); this.skin_btn_use.on(Laya.Event.CLICK,this,this.onSkinBtnUseClick) } private onSkinBtnUseClick(){ console.log("使用"); }   //btn 有宽高 2018-08-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...

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