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

大约有 4,034 项符合查询结果, 库内数据总量为 30,910 项。 (搜索耗时: 0.0076 秒)

1281. Laya.timer.loop()如何停止 [ 83%]

...***192 赞同来自: zjwytqm 、cuixueying 、umi_  Laya.timer.loop(1000, this, animateTimeBased);//添加 Laya.timer.clear(this,animateTimeBased);          //删除 2017-06-05 3 3 分享 微博 QZONE 微信 Y_Yao 赞同来自: 清除定时器clear(); 2017-06-05 0 0 分享 微博 QZONE 微...

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

1282. 如何用代码触发点击事件? [ 83%]

...如何用代码触发点击事件? 比如sprite1注册了点击事件: this.sprite1.on(Laya.Event.CLICK, this, this.sprite1CallBack); 怎样不用点击,而用代码去触发? 是 this.sprite1.event(Laya.Event.CLICK) 这样吗? 2018-07-24 1 条评论 免费帖 --> 分享 微博 QZONE 微...

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

1283. HttpRequest详解(TypeScript-LayaAir基础篇(TS)-数据与通信) [ 83%]

...http.timeout = 10000;//设置超时时间; xhr.once(Laya.Event.COMPLETE, this, this.completeHandler); xhr.once(Laya.Event.ERROR, this, this.errorHandler); xhr.on(Laya.Event.PROGRESS, this, this.processHandler); xhr.send("res/data.data", "", "get", "text"); console.log("aaaa"); } private processHan...

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

1284. 为什么显示不了 [ 83%]

为什么显示不了 var sp = new Laya.Sprite(); sp.graphics.drawRect(this.mouse_x, this.mouse_y, 10, 10, "#ff0000"); //var htmlC:Laya.HTMLCanvas = sp.drawToCanvas(375,440,0,0).getCanvas().toDataURL(); var htmlCanvas:Laya.HTMLCanvas = sp.drawToCanvas(375,440,0,0); var texture:Laya.Texture = new La...

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

1285. Laya2.2.0,官方demo,Iphone Xs Max 14.0 锁屏小游戏卡死 [ 83%]

...onhide里面停止掉引起bug的代码 window['wx'].onShow((res) => { this.event(AppEvent.onShow, res); this.appStatus = AppEvent.onShow; console.log(this.appStatus, '---------'); Laya.stage.renderingEnabled = true//恢复渲染 Laya.updateTimer.resume() //恢复onUpdate Laya.timer.resume(); //...

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

1286. 【官网代码】加载dom音频报错,怎么回事? [ 83%]

...ontext.createAnalyser();analyser.fftSize = 256;Laya.stage.once(Event.CLICK,this,clickHandler); }private function clickHandler(e:Object):void{var http:HttpRequest = new HttpRequest();http.on(Event.COMPLETE,this,completeHandler);http.send("489.mp3","","get",Loader.BUFFER);}private function completeHa...

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

1287. 1.7的接口消失 [ 83%]

1.7的接口消失 // ZmyTestManager.Ani.on(Laya.Event.COMPLETE, this, this.OnCurrentAnimationCompleted);//循环动画完成播放单次循环 // ZmyTestManager.Ani.on(Laya.Event.STOPPED, this, this.OnCurrentAnimationStopped);//非循环动画停止播放 这个接口在2.0后就没有了 文档...

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

1288. Error: 代码包大小为 5533 kb,上限为 4096 kb,请删除文件后重试? [ 83%]

...in { constructor() { console.log(Laya.Browser.width, Laya.Browser.height); this.current = { x: 0, y: Laya.Browser.height }; // Laya.stage.bgColor = "#3F51B5"; this.sp = new Laya.Sprite(); Laya.stage.addChild(this.sp); } render() { console.log("render"); var l = [ 0, 0, 0, -(Laya.Browser.height >&...

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

1289. laya.utils.Tween [ 83%]

...属性列表,比如{x:100,y:20,ease:Ease.backOut,complete:Handler.create(this,onComplete),update:new Handler(this,onComplete)}。  duration:int — 花费的时间,单位毫秒。  ease:Function (default = null) — 缓动类型,默认为匀速运动。  complete:Handler (default = null) ...

来源: laya_api 发布时间: 20170929

1290. animation动画对象 无法增加鼠标事件 [ 83%]

...sprit对象 就能正常 。 部分代码如下,动画能正常播放。 this.role = new Laya.Animation(); this.role.on(Laya.Event.MOUSE_DOWN, this, this.onDrag); 2018-07-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 ...

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