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

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

131. 使用百度地图显示当前位置(TypeScript-LayaAir基础篇(TS)-硬件设备相关) [ 67%]

...Geolocation.enableHighAccuracy = true; Laya.Geolocation.watchPosition(Laya.Handler.create(this, this.updatePosition), Laya.Handler.create(this, this.onError)); // 绑定convertToBaiduCoord作用域 this.convertToBaiduCoord = this.convertToBaiduCoord.bind(this); } } new WatchPosition(); ``` ​ 由...

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

132. 使用百度地图 · LayaAir3.3 · 引擎文档 · LAYABOX [ 67%]

...Geolocation.enableHighAccuracy = true; Laya.Geolocation.watchPosition(Laya.Handler.create(this, this.updatePosition), Laya.Handler.create(this, this.onError)); // 绑定convertToBaiduCoord作用域 this.convertToBaiduCoord = this.convertToBaiduCoord.bind(this); } } 由于本例不需要使用LayaAir...

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

133. Uncaught TypeError: Cannot read property '_tf' of null [ 67%]

...mage.scale(1,1);     Tween.to(image,{scaleX:0.5,scaleY:0.5},600,null,new Handler(this,tweenGuide,[image]),500); }   public function tweenGuide1(image:Image):void {    Tween.to(image,{x:100,y:100},600,null,new Handler(this,tweenGuide1,[image]),500); } *******************************************...

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

134. TiledMap地图 · LayaAir3.3 · 引擎文档 · LAYABOX [ 67%]

...is.tMap.createMap("resources/TiledMap/orthogonal.json", viewRect, new Laya.Handler(this, this.completeHandler)); } //添加地图到Scene2D下 private onLoaded(): void { this.tMap.mapSprite().removeSelf(); this.owner.addChild(this.tMap.mapSprite()); } //地图加载完成的回调 private completeHa...

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

135. list显示函数调用不出来 [ 66%]

list显示函数调用不出来 list的renderHandler函数调用不成功是什么原因? this.listShow.renderHandler = new Laya.Handler(this, this.onRender);   附件 : --> 2018-04-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链...

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

136. 分享:为List组件下Item(Box)下的Button(或其他组件)进行监听! [ 66%]

...据自己的需求进行修改即可!var Loader = laya.net.Loader; var Handler = laya.utils.Handler; var Event = laya.events.Event; // 创建TestPageUI的子类 function TestUI() { TestUI.super(this); //list赋值,先获得一个数据源数组 var arr = ; for (var i = 0; i < 100; i++) { arr....

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

137. 加载同一个json文件第一次正常,第二次json文件里面的数据就只有一条了。 [ 66%]

...接 提交 2 个回复 Yangcy 赞同来自: Laya.loader.load("abc.json", Handler.create(this, onAssetLoadedSound), Handler.create(this, progressHandler), Loader.SOUND);   第一次加载出来: [list=none] [*]0: {column: "0", duration: "0", mode: "点", time: "3076"}[/*] [*]1: {column: ...

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

138. Morn下List组件如何给每一条列表添加Click事件,是需要for吗? [ 66%]

...现方式吗?(*^__^*) 嘻嘻…… Morn UI下的List组件提供了mouseHandler方法,该方法的回调方法会返回2个参数,一个是事件类型,一个是当前你所点击列表的索引值。根据索引值即可判断你点击的是哪一条列表,并根据该索引写下你想...

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

139. Laya 中用什么事件可以检测声音是否播放结束? [ 66%]

...trace("播放音乐"); SoundManager.playMusic("res/sounds/bgm.mp3", 1, new Handler(this, onComplete)); } private function onPlaySound(e:Event=null):void { trace("播放音效"); SoundManager.playSound("res/sounds/btn.mp3", 1, new Handler(this, onComplete)); }播放声音或音效的第3个参数就...

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

140. Laya.Sprite 和 laya.display.Sprite 是一样的吗? [ 66%]

...ort Loader = laya.net.Loader import Texture = laya.resource.Texture import Handler = laya.utils.Handler import Browser = laya.utils.Browser import TiledMap = laya.map.TiledMap import Rectangle = laya.maths.Rectangle import Stat = laya.utils.Stat import TextFiled = laya.display.Text import LocalStora...

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