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

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

21. Geolocation.watchPosition [ 92%]

Geolocation.watchPosition Geolocation.enableHighAccuracy = true; this.gps_handler = Handler.create(this, this.update_gps); this.failed_handler = Handler.create(this, this.gps_failed); this.watch_id = Geolocation.watchPosition(this.gps_handler, this.failed_handler); this.gps_handler 只会回调一...

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

22. Laya.Handler为什么注册不成功? [ 91%]

Laya.Handler为什么注册不成功? this.scrollView.mouseHandler = Laya.Handler.create(this,this.onScrollMouse) this.scrollView.mouseHandler = new Laya.Handler(this, this.onScrollMouse);我在scrollView中有个mouseHandler的Laya.Handler变量,想直接注册到这个变量上,但是两种...

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

23. 关于缓动函数from的一些问题记录 [ 90%]

...rText.y = 400; Laya.Tween.from(letterText,{y:100},3,Laya .Ease.backOut,new Handler(this,this.onEaseComplete),1,null,true); function onEaseComplete(){ console.log("ease complete"); Laya.stage.addChild(letterText); } ``` 以上的代码主要存在三个问题: 1. from()中的duration和delay都是以...

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

24. 资源版本问题 [ 90%]

...Version.FILENAME_VERSION; Laya.ResourceVersion.enable("version.json", Laya.Handler.create(this, beginLoad)) function beginLoad() { //加载LOADING资源 Laya.loader.load([{ url: "res/atlas/icon.atlas" }, { url: "res/atlas/human.atlas" }], Laya.Handler.create(this, progress, null, false), null, Laya....

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

25. 游戏加载进度失效 [ 89%]

...url: "mileTxt.png", type: Laya.Loader.IMAGE } Laya.loader.load(asset, Laya.Handler.create(this, this.onLoaded),Laya.Handler.create(this,this.onLoading)); } onLoading(progress){ this.gameLoading.loadTxt.text="Loading..."+(progress*100)+"%"; } onLoaded() { this.cacheAnimation(); var waterBg = Laya.Spr...

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

26. DialogManager设置弹出效果后,第一次能打开,第二次就打不开了。 [ 89%]

...第一次能打开,第二次就打不开了。 Dialog.manager.popupEffectHandler = Handler.create(this,(e)=>{ var dialog:Dialog = <Dialog>e; dialog.y = - dialog.height; var yy:number = (Laya.stage.height - dialog.height)/2; Laya.Tween.to(dialog,{y:yy},600,Laya.Ease.backOut); },[],false); ...

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

27. 在加载多个资源的时候,加载进度异常 [ 89%]

..."res/atlas/f3.atlas", "res/atlas/f4.atlas", "res/atlas/f5.atlas"],   Laya.Handler.create(this, function(){ }),  Laya.Handler.create(this, function(e){    console.log(e) } , Laya.Loader.ATLAS);   此时进度e的值只有一个数0.41 ,不会从0到1,这是什么原因? 2018-01-01 添加...

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

28. tween 的 update 怎么是回调一次!!! [ 88%]

...aya.Tween.to(obGold, {value:__data.gold}, 1000, Laya.Ease.linearNone, Laya.Handler.create(this, function(){                 trace('obGold.value', obGold.value)             }), 0)             tweenGold.update = updateGoldHandler 写法没问题吧!!! 2019-05-20 添加评论 ...

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

29. Texture.create 和Texture.createFromTexture有什么区别 [ 87%]

...次方图集区别在哪? var 与 name 的详细区别是什么? Laya.Handler.create和new Laya.Handler有啥区别 Dialog和View用destroy和Laya.stage.removeChild有什么区别? 在初始化时候使用canvas 或者WebGL 两种模式对使用引擎有什么区别? dispone和destory的区别...

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

30. 在UI类里调用启动类的静态函数失败了 [ 87%]

...r.IMAGE }, { url: "res/atlas/comp.atlas", type: Laya.Loader.ATLAS }], Laya.Handler.create(this, this.onLoaded), Laya.Handler.create(this, this.onLoading)); } static aaa(): void { } private onLoaded(): void { var info = new view.GameInfo(); info.zOrder = 99;//置最顶,这句话不写图层看不见 ...

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