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

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

31. Laya.loader.load怎么停止回调 [ 79%]

....load怎么停止回调 this._load = Laya.loader.load(this._data.url, Laya.Handler.create(this, this.loadComplete), null, Laya.Loader.ATLAS); 如果我想在加载的过程中 不去触发 loadComplete方法 我该怎么办? this._load.off(Laya.Event.COMPLETE, this, this.loadComplete); 这个是...

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

32. JS进度条加载问题 [ 79%]

... proArr = []; proArr[0]=pro1; proArr[1]=pro2; Laya.loader.load(proArr,Laya.Handler.create(this,onProLoaded)); if(Laya.Browser.onAndriod) { Laya.stage.scaleMode = Laya.Stage.SCALE_EXACTFIT; } else { Laya.stage.scaleMode = Laya.Stage.SCALE_SHOWALL; } Laya.stage.alignH = Laya.Stage.ALIGN_CENTER; Laya.s...

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

33. 内存优化方式(ActionScript-2D进阶篇(AS3)-性能优化) [ 79%]

...图2-1中的`Hanlder.create()`方法说明。 > 从对象池内创建一个Handler,默认会执行一次并立即回收。 也就是说,如果需要多次触发这个回调方法,那么就需要对`Hanlder.create()`方法中的`once`参数设置为`false`。或者用`new Handler()`的方式创...

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

34. laya.utils.Tween.to的第一个参数可以是个label? [ 78%]

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

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

35. LAYA js 1.7.12 Tween 使用时回调时 core报错 [ 77%]

...js包集成中,使用完全一样的代码,提示 Uncaught TypeError: handler.run is not a function at Tween.__proto.complete (laya.core.js:9423) 9423 :handler && handler.run(); 你们自己试试吧。。为啥要。&&run() 2017-11-11 添加评论 免费帖 --> 分享 微...

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

36. Laya.Scene.open 中的complete参数如何取得场景实例? [ 77%]

...何取得场景实例? 我看了Laya.Scene.open中的参数: complete:Handler (default = null) — 打开完成回调,返回场景实例(可选)   那么我要怎么从这个handler里边得到打开场景实例呢: 以下是我写的typescript代码: class Main {     onConfigLoaded(...

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

37. 获取位置信息 · LayaAir3.0文档 · LAYABOX [ 76%]

...BLE和Geolocation.TIMEOUT之一。 */ static getCurrentPosition(onSuccess: Handler, onError: Handler = null): void { Geolocation.navigator.geolocation.getCurrentPosition(function (pos: any): void { Geolocation.position.setPosition(pos); onSuccess.runWith(Geolocation.position); }, function (error: an...

来源: Laya3.0_文档 发布时间: 20230725

38. setSixSideImageSources()传入什么参数都不对呢 [ 76%]

...对,帮忙看下哪里要调整? 对象池对类怎么传参数 Laya.Handler.create 加载图片回调参数问题 子节点的 getChildIndex(node:Node):int 根据子节点对象,获取子节点的索引位置。参数是什么 http 请求 once 的 回调参数,如何传递和接收? IDE...

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

39. 二次开发 异步回调没反应 [ 75%]

...没反应 ts: /**视频广告 */ public static showVideoAd(success: Laya.Handler, type: string): void { if (GameConfig.ins.isDev) { success.runWith(1); return; } var VGUtil = Laya.PlatformClass.createClass("com.szdn.game.fkzy.VGUtil"); VGUtil.callWithBack(back, "showVideoAd", type);  function back(...

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

40. 显示与切换图片(ActionScript-LayaAir基础篇(AS3)-位图) [ 74%]

...ya.net.LoaderManager中的load()方法和getRes()方法,以及laya.utils.Handler中的create()方法,各方法的参数图3、图4、图5、图6所示: ![图3](img/3.png) (图3) ![图4](img/4.png) (图4) ![图2](img/5.png) (图5) ![图2](img/6.png) (图6) ### 2.2 用drawTexture 加载显示图...

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