大约有 520 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0090 秒)
...s"); private LoadAsset(path: string): void { Laya.loader.create(path, Laya.Handler.create(this, this.OnAssetComplete)); } private OnAssetComplete(): void { console.log("on asset complete:"); } 我想在OnAssetComplete内知道是哪个资源被回调了,请问要怎样处理,是否有现成的...
来源: Laya_社区 发布时间: 20180316
... Laya.Tween.to(this.obj,{scaleY:1,scaleX:1},10,Laya.Ease.backIn,Laya.Handler.create(this,this.backEdHd)); } this.init = function(){ Laya.Tween.to(this.obj,{scaleY:1.05,scaleX:1.05},100,Laya.Ease.backOut,Laya.Handler.create(this,this.clickEnd)); ...
来源: Laya_社区 发布时间: 20170301
...(); //棋子动画 this.genSpine("res/spine/ludo_qizidongzuo.skel", Laya.Handler.create(this, (templet: Laya.SpineTemplet) => { //模版复用 let y = 400; let unitWidth = Laya.stage.width / 16; for (let i = 0; i < 16; i++) { let person = templet.buildArmature(); Laya.stage.addChild(person...
来源: Laya_社区 发布时间: 20220530
...isplay.Text; import laya.display.Sprite; import laya.utils.Handler; import laya.resource.Texture; public class LayaSample { private var img:Sprite ; private var index:int ; public function LayaSample() { ...
来源: Laya_社区 发布时间: 20170918
...这样就能加载出来了Laya.loader.create("LayaScene_01/loveScene.ls",Handler.create(this,this.completeHandler)); private function completeHandler():void{ var scene:Scene = Laya.loader.getRes("LayaScene_01/loveScene.ls"); Laya.stage.addChild(scene); } 我现在的问题是,我...
来源: Laya_社区 发布时间: 20170825
...ngMaterial(); Laya.Texture2D.load("res/threeDimen/Physics/grass.png", Laya.Handler.create(this, function(tex:Laya.Texture2D) { planeMat.albedoTexture = tex; })); //设置纹理平铺和偏移 planeMat.tilingOffset = new Laya.Vector4(10, 10, 0, 0); //设置材质 plane.meshRenderer.material = planeMa...
来源: Laya2.0_文档 发布时间: 20210715
...w BlinnPhongMaterial(); Texture2D.load("res/threeDimen/Physics/grass.png", Handler.create(null, function(tex:Texture2D):void { planeMat.albedoTexture = tex; })); //设置纹理平铺和偏移 planeMat.tilingOffset = new Vector4(10, 10, 0, 0); //设置材质 plane.meshRenderer.material = planeMat; //...
来源: Laya2.0_文档 发布时间: 20210714
...接 提交 3 个回复 zhpr613 赞同来自: cuixueying import laya.utils.Handler 是否忘记导包了,我用的as3,导包之后是没有问题的。 2017-05-10 1 0 分享 微博 QZONE 微信 cuixueying 赞同来自: Tween.to(sp,{x:400},1000,null,Handler.create(this,onTweeed)) onTween就是你...
来源: Laya_社区 发布时间: 20170104
...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
...次方图集区别在哪? var 与 name 的详细区别是什么? Laya.Handler.create和new Laya.Handler有啥区别 LayaAir使用AS语言能直接挂断点吗? 关于几种文本的区别与用法 3d支持直接调手机的拍照和上传功能吗 Mesh.load()必须加载lm文件吗?lm和lh...
来源: Laya_社区 发布时间: 20170811