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

大约有 1,442 项符合查询结果, 库内数据总量为 30,906 项。 (搜索耗时: 0.0053 秒)

831. 精灵添加名称 [ 70%]

...#eeb9b3");         sp.on(Event.CLICK,this, onsp);         Laya.stage.addChild(sp);   }   private function onsp(e:Event){              console.log("监听到按钮"+e.target);              console.log((e.target.getChildAt(0) as Sprite).name);              console.l...

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

832. 用ide打包后的图片,Texture显示不出来? [ 70%]

..., onLoaded)); function onLoaded(){     var aa = new Sprite();     Laya.stage.addChild(aa);     var texture = new Laya.Texture();     texture.load('comp/zzw.png' );     setTimeout( function(){         aa.graphics.drawTexture(texture,0,0);     }, 1000 ) } 3Q 2017-12-26 添加评论 ...

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

833. Animation提示未定义 [ 70%]

...Cloud = new Animation(); this.aniCloud.loadAnimation("AniCloud.ani"); Laya.stage.addChild(this.aniCloud); }报错 Uncaught ReferenceError: Animation is not defined 2017-10-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 ...

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

834. 分享:避免鼠标快速移动,mouseout和mouseover触发顺序不一致的问题! [ 69%]

...示对象 public function MouseOver_mouseOut() { Laya.init(600,400); Laya.stage.bgColor='#EEFFCC'; arr=; var sp1:Sprite=new Sprite(); sp1.autoSize=true; sp1.name='sp1'; sp1.graphics.drawRect(0,0,100,100,"#FF0000"); var sp2:Sprite=new Sprite(); sp2.autoSize=true; sp2.name='sp2'; sp2.graphics.drawRect...

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

835. dialog第一次可以正常调出,第二次无法正常popup出来 [ 69%]

...ew = new LoginView();         loginView.init();         Laya.stage.addChild(loginView);     } LoginView.js中的init函数     LoginView.prototype.init = function () {         this.btnReg.on(Laya.Event.CLICK, this, this.onBtnReg);         this.btnLogin.on(Laya.Event...

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

836. 鼠标 MOUSE_DOWN Event 回来的信息不符合 [ 69%]

...ateSprite() { picture = new Sprite(); picture.loadImage(picturePath); Laya.stage.addChild(picture); var texture = Laya.loader.getRes(picturePath); picturePath.pivot(texture.width / 2, texture.height / 2); picture.x = Laya.stage.width / 2; picture.y = Laya.stage.height / 2; picture.scale(cardScaleVal...

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

837. 为什么显示不了 [ 69%]

...os(this.mouse_x,this.mouse_y+100); sps.graphics.drawTexture(texture); Laya.stage.addChild(sps);   代码有什么问题吗   为什么舞台没有显示   2018-04-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回...

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

838. 【简单跑酷--JS版】---Lv.6 终篇 [ 69%]

...y = 32 * 4; this.addChild(this.player); //监听 按下 弹起 事件 Laya.stage.on(laya.events.Event.MOUSE_DOWN, this, this.onMouseDown); Laya.stage.on(laya.events.Event.MOUSE_UP, this, this.onMouseUp); //创建一个帧循环处理函数 Laya.timer.frameLoop(1, this, this.onLoop); } _proto.onLoop ...

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

839. setSubPixels画布擦除不掉 [ 69%]

...aya.Image = new Laya.Image(this.aUrl); aImg.scaleX = aImg.scaleY = 2; Laya.stage.addChild(aImg); aImg.mouseEnabled = false; this.aImg = aImg; } //清除目标纹理的像素 let _sourceTex:Laya.Texture = Laya.Loader.getRes(this.aUrl); let ret = new Uint8Array(_sourceTex.width * _sourceTex.height * 4...

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

840. 3Ddemo加载Unity导出场景报错resou._removeReference is not a function [ 69%]

...uper();          //加载3D场景 //var scene: Laya.Scene3D = Laya.stage.addChild(new Laya.Scene3D()) as Laya.Scene3D; Laya.Scene3D.load("res/LayaScene_terrain/Conventional/terrain.ls",Laya.Handler.create(this,function(scene:Laya.Scene3D){ Laya.stage.addChild(scene) as Laya.Scene3D; console....

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