大约有 988 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0082 秒)
... = 0; Laya.Tween.to(this.bir, { x: 200, y: 200 }, 2000, () => { }, Laya.Handler.create(this, this.change)); 这里面会直接过两秒执行this.change,而前面x:0->200 y:0->200不会执行 是什么原因?????? 2017-08-09 添加评论 免费帖 --> 分享 微...
来源: Laya_社区 发布时间: 20170809
... type:Loader.SOUND} ]; Laya.loader.load(assetArr,Handler.create(this,onComplete),Handler.create(this,onProgress)); } private function onProgress(loadNum:Number):void { } private function onComplete():void { } 附件 : --> 2018-11-12 添加评论 免费帖 --> 分享 微...
来源: Laya_社区 发布时间: 20181112
...ation.enableHighAccuracy = true; Laya.Geolocation.getCurrentPosition( Laya.Handler.create(null, cb_onGeoPositionSuccess), Laya.Handler.create(null, cb_onGeoPositionFail)); } else { alert("您的浏览器不支持使用HTML5来获取地理位置服务"); } } // 回调函数:获取GPS坐标成功后 f...
来源: Laya_社区 发布时间: 20161102
...play.Sprite; import laya.resource.Texture; import laya.utils.Handler; public class CupPhone { public function CupPhone() { Laya.init(550,400); Laya.loader.load("walk.png",Handler.create(this,onLoaded));...
来源: Laya_社区 发布时间: 20160506
.../ad.union.api/e285dd263aee2e8f7b302fa8d139de4c' Laya.loader.load(url, Laya.Handler.create(this, () => { let picTemp = Laya.Loader.getRes(url); console.log(picTemp.width) // undefined let nodee = new Laya.Sprite() nodee.texture = picTemp nodee.width = 500 nodee.height = 250 nodee.x = 100 nodee.y =...
来源: Laya_社区 发布时间: 20211026
...EN_NONE; Laya.Stat.show(); Laya.Scene3D.load('/1/res/SampleScene.ls', Laya.Handler.create(null, function(scene1){ let scene = Laya.stage.addChild(scene1); Laya.Sprite3D.load("/1/res/SampleScene.lh", Laya.Handler.create(null, function(sp) { //let obj = sp; let obj = scene.addChild(sp); obj.transform....
来源: Laya_社区 发布时间: 20200611
...一个测试方法 Laya.loader.create 进度回调函数执行两次 Laya.Handler.create 回调 创建树Tree 该怎么回调mouseHandler 形参该传什么 资源加载后的 回调 问题状态 最新活动: 2019-04-21 18:25 浏览: 984 关注: 1 人
来源: Laya_社区 发布时间: 20190421
... Laya.Scene3D.load("res/LayaScene_game/Conventional/game.ls",Laya.Handler.create(null,function(scene3d){ // HelperApp.a = scene3d; //加载完成获取到了Scene3d scene3d.name = 'good'; self.owner.addChild(scene3d); ...
来源: Laya_社区 发布时间: 20220506
...次方图集区别在哪? var 与 name 的详细区别是什么? Laya.Handler.create和new Laya.Handler有啥区别 [分享]Dialog 点击边缘不关闭的 Demo示例 Dialog和View用destroy和Laya.stage.removeChild有什么区别? dialog通过UIConfig设置UIConfig.closeDialogOnSide = false后...
来源: Laya_社区 发布时间: 20180119
...载界面的配置文件:Laya.loader.load(['res/atlas/game.json'],Laya.Handler.create(this,Slot.onSourcesLoaded), Laya.Handler.create(this,Slot.onSourcesLoading,null,false),Laya.Loader.ATLAS);这样写似乎监听的当前加载进度不太对,我总共有6张未打包图和1张打包图 打印...
来源: Laya_社区 发布时间: 20170225