大约有 520 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0052 秒)
...执行onLoaded回调方法 Laya.loader.load("res/atlas/apes.atlas", Laya.Handler.create(this, onLoaded)); function onLoaded() { //创建一个UI实例 var plan = new ui.TimeLineUI(); //添加到舞台 Laya.stage.addChild(plan); //播放UI场景中的动画 plan.crashed.play(); }运行时发现ui变...
来源: Laya_社区 发布时间: 20190217
...ionObject' of undefined 请问下加载TFF字体要怎么加载呢? Laya.Handler.create和new Laya.Handler有啥区别 请问一下怎样动态加载prefab laya怎么跨域加载图片 unity到导出场景加载时抛异常,不知所措 Animation 的createFrames 使用已经加载的图集缓存...
来源: Laya_社区 发布时间: 20171206
...} cardList.renderHandler = new Handler(this, renderHandler, [cardList]); // popArr = cardArr.pop(); if(index%2){ cardList.itemRender = roleCardUI; ...
来源: Laya_社区 发布时间: 20170310
...mport laya.display.Sprite; import laya.resource.Texture; import laya.utils.Handler; public class MaskDemo { private var Res:String; private var img:Sprite; public function MaskDemo() { Laya.init(1136,640); //设置舞台背景色 Laya.stage.bgColor = "#ffffff" //资源路径 Res = "res/img/monkey1.p...
来源: Laya2.0_文档 发布时间: 20210714
...回调方法绘制图片并添加到舞台 Laya.loader.load(this.Res,Laya.Handler.create(this,this.graphicsImg)); } private graphicsImg():void{ this.img = new Laya.Sprite(); //获取图片资源,绘制到画布 this.img.graphics.drawTexture(Laya.loader.getRes(this.Res),150,50); //添加到舞台 L...
来源: Laya2.0_文档 发布时间: 20210715
...ya.net.LoaderManager中的load()方法和getRes()方法,以及laya.utils.Handler中的create()方法,各方法的参数图3、图4、图5、图6所示:  (图3)  (图4)  (图5)  (图6) ### 2.2 用drawTexture 加载显示图...
来源: Laya2.0_文档 发布时间: 20210715
.../Assets/PBR Barrel/Materials/Textures/Barrel_AlbedoTransparency.png', Laya.Handler.create(this, function (texture) { this.mat.albedoTexture = texture; })); //法线贴图 Laya.Texture2D.load('res/threeDimen/scene/PBRMaterialScene/Assets/PBR Barrel/Materials/Textures/Barrel_Normal.png', Laya.Handler....
来源: Laya2.0_文档 发布时间: 20210715
...createSprite3D = 2; Laya.loader.create("res/h5/LayaScene_Effect/Effect.lh",Handler.create(this,this.onEffectOK),null,Laya.Sprite3D); Laya.loader.create("res/h5/LayaScene_aixin/aixin.lh",Handler.create(this,this.onEffectOK),null,Laya.Sprite3D); onEffectOK() : void{ this._createSprite3D -= 1; if(this....
来源: Laya_社区 发布时间: 20180403
...er.create("LayaScene_layabox/Library/unity default resources-Quad.lm",Laya.Handler.create(this,this.onCreateComplete)); Laya.loader.create("LayaScene_layabox/Library/unity default resources-Capsule.lm",Laya.Handler.create(this,this.onCreateComplete)); private onCreateComplete():void { var mesh:Laya....
来源: Laya_社区 发布时间: 20180719
...is.atlas','imgdebris/p1_slj.png',]; // this.loader.load(this.urls[0], Laya.Handler.create(this, this.onAssetloaded)); this.loader.load(this.urls,this.Handler.create(this,this.onAssetloaded),this.Handler.create(this, this.onLoading, null, false)); }, onAssetloaded : function(texture){ this.tl = new L...
来源: Laya_社区 发布时间: 20190117