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

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

341. drawToTexture截大图有问题,会丢失 [ 80%]

...e;         Laya.stage.addChild(this.nsp);         this.nsp.on(Laya.Event.CLICK,this,this.drawImg,null)     }     drawImg(e:Event=null):void{         var copySpr:Laya.Sprite=new Laya.Sprite();         copySpr.texture=this.nsp.drawToTexture(1600,1600,0,0) as Laya.Texture;       ...

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

342. 骨骼动画进阶(JavaScript-2D进阶篇(JS)-动画进阶) [ 80%]

...a.WebGL); //创建动画模板 templet=new Laya.Templet(); templet.on(Laya.Event.COMPLETE,this,parseComplete); templet.on(Laya.Event.ERROR,this,onError); //加载动画文件 templet.loadAni("res/spine/goblins/goblins.sk"); function onError() { console.log("parse error"); } function parseComplete() ...

来源: Laya2.0_文档 发布时间: 20210715

343. 分享:简单聊天室 [ 80%]

...现效果如下: 主要实现代码如下: package view { import laya.events.Event; import laya.utils.Browser; import ui.test.HtmlPageUI; public class HtmlView1 extends HtmlPageUI { private var str:String; private var str2:String; private var isSend:Boolean=false; public function HtmlView1() { s...

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

344. 还是自定义事件问题。 [ 80%]

...", this, this.onChange,this._data);  监听    在A类  抛事件 this.event("vj_move","abc");   断点监听处  this._data没数据   是不是写法有问题???   2017-11-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接...

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

345. 为什么说没有​ playByFrame方法 [ 79%]

...name=='anifish'){ anifish.player.playByFrame(0,1.0,0,40,72,30); anifish.on(Event.COMPLETE,this,complete) function complete(){ alert(1) } Monica • 2017-09-27 14:22 @haiboannacom:Event前边加个Laya.看看 haiboannacom • 2017-09-27 14:25 @Monica:第三条鱼我加了这个了。也不行。anifi...

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

346. HIERARCHY_LOADED函数不回调 [ 79%]

....Sprite3D; //this.sceneP.transform.setTranslate(500,500); this.sceneP.once(Event.HIERARCHY_LOADED, this,function():void{ console.error("改变大小"); this.sceneP.transform.localScale = new Vector3(3, 3, 3); this.sceneP.transform.localPosition = new Vector3(100, 100, 100); }); 2018-03-27 添加评...

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

347. 怎么实现同一个工程内分包? [ 79%]

...lash.display.StageAlign; import flash.display.StageScaleMode; import flash.events.Event; import login.LoginView; public class Main extends Sprite { public function Main():void { if (stage) init(); else addEventListener(Event.ADDED_TO_STAGE, init); } private function init(e:Event = null):void { remov...

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

348. laya.display.Node [ 79%]

...| All Classes | Index | Frames No Frames NodeProperties | Methods | Events Packagelaya.displayClasspublic class NodeInheritanceNode EventDispatcher ObjectSubclasses ComponentNode, Sprite Node 类是可放在显示列表中的所有对象的基类。该显示列表管理 Laya 运行时中显...

来源: laya_api 发布时间: 20170929

349. 鼠标事件监听 异常触发mouseout [ 79%]

...seDown、mouseOut 就能复现 Enheng • 2022-05-05 17:24 this.sp.on(Laya.Event.MOUSE_DOWN, this, this.text) this.sp.on(Laya.Event.MOUSE_OUT, this,this.text) Enheng • 2022-05-05 17:26 按道理来说,我未移出只做点击动作,应该只执行一遍text(),但是它执行了两遍 Laya_...

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

350. Laya tiledmap 监听事件未响应 [ 79%]

...stPrior = true;         Laya.stage.focus = _mapSprite;         let event = _mapSprite.on(Laya.Event.CLICK, this, () => {             LogUtil.w("响应点击事件")         })     }   尝试使用focus 好像也没有响应 请问大佬们能解答一下吗 附件 : --> 2022-...

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