大约有 803 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0055 秒)
...prite3D.load("h5/LayaScene_car/Conventional/car.lh",Laya.Handler.create(this,(sp:Laya.Sprite3D)=> { this.car = sp.getChildAt(0).getChildAt(0) as Laya.Sprite3D; this.scene.addChild(this.car); this.rig = (this.car.getComponent(Laya.Rigidbody3D) as Laya.Rigidbody3D) })); 源 • 2019-01-11...
来源: Laya_社区 发布时间: 20190111
...eSweeper6[7091:2932001] Download [ ]:http://stand.alone.version/index.html Creating context 1024, 768, 22018-03-15 11:24:58.270942+0800 MineSweeper6[7091:2932001] curl_easy_perform failed, code=6 src=http://stand.alone.version/index.html 2018-03-15 11:24:58.271059+0800 MineSweeper6[7091:2932001] Dow...
来源: Laya_社区 发布时间: 20180315
...件: Laya.loader.load("res/atlas/template/QuestionDialog.atlas", Handler.create(null)); 对应的场景代码里: var dialog = new QuestionDialogUI(); Laya.stage.addChild(dialog); dialog.popup(); dialog.btn_question_dialog_next.on(Laya.Event.CLI...
来源: Laya_社区 发布时间: 20180718
... //这里是我注释掉的代码 //Laya.loader.load(this.ApePath, Handler.create(this, this.setup)); this.setup(); } private setup(): void { this.createApe(); this.showDragRegion(); } private createApe(): void { this.ape = new Sprite(); //this.ape.loadImage(this.ApePath); Laya.stage.addChild(this.a...
来源: Laya_社区 发布时间: 20171106
....ATLAS }); //加载图集资源 Laya.loader.load(asset, laya.utils.Handler.create(this, onLoaded), laya.utils.Handler.create(this, onLoading, null, false)); 嗯 加载改好了 我们先来测试一下 图片是否能拿到 我们在onLoaded方法里面 写一点测试代码 如下 function onLoa...
来源: Laya_社区 发布时间: 20160801
...der.load([{url:"res/atlas/comp.json",type:Laya.Loader.ATLAS}],Laya.Handler.create(this,this.loadComp)); } private loadComp():void{ var parent:ui.ParentViewUI = new ui.ParentViewUI(); Laya.stage.addChild(parent); //当注释掉设置rotaion的代码则没有问题,否则会导致显示异常,其他...
来源: Laya_社区 发布时间: 20170829
...添加到舞台上 Laya.loader.load("./res/atlas/comp.atlas",Laya.Handler.create(this,onLoaded)); function onLoaded(){ //实例化导出的UI类 var efc = new ui.TestPUI(); //添加到舞台 Laya.stage.addChild(efc); } ``` 运行后,按钮被按下时,动画效果如动图11所示: ); } private onLoaded():void{ //实例化导出的UI类 var efc:ui.EffectAnimationDemoUI = new ui.EffectAnimationDemoUI(); //添加到舞台 Laya.stage.addChild(efc); } }new Main(); ``` 运行后,...
来源: Laya2.0_文档 发布时间: 20210715
...nction beginLoad():void { Laya.loader.load("res/images/rank.json", Handler.create(this, onLoaded)); } private function onLoaded():void { trace("加载成功"); var c:Image = new Image("rank/country.png"); Laya.stage.addChild(c); } 以上是子域项目中加载图集和取资源的代码。代码...
来源: Laya_社区 发布时间: 20180830
...成功后,执行onLoaded回调方法 Laya.loader.load(skin,Laya.Handler.create(this,onLoaded)); function onLoaded(){ //创建一个Button实例 var btn = new Laya.Button(skin); //将Button添加到舞台上 Laya.stage.addChild(btn); //设置Button相关属性 btn.width = 100; btn.height = 50; btn....
来源: Laya2.0_文档 发布时间: 20210714