大约有 988 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0077 秒)
..."; 或者是 let tex = new Laya.Texture(); tex.load("ui/guide01.png", Laya.Handler.create(this, ()=>{ this.img.texture = tex; })); 但是如果使用ASTC纹理时就会报错,需要使用异步的方式来处理 Laya.loader.load("ui/guide01.ktx", Laya.Handler.create(this, (res...
来源: Laya_社区 发布时间: 20220919
...Laya.Templet; public mArmature: Laya.Skeleton private _handler: Laya.Handler; constructor(url: string, handler: Laya.Handler, aniMode: number = 0) { this._handler = handler; this.mFactory = new Laya.Templet(); ...
来源: Laya_社区 发布时间: 20200618
...res/atlas/common.json","type":Loader.ATLAS}, ]; Laya.loader.load(resarray, Handler.create(this, this.preloadLoaded), Handler.create(this, this.onProgress,null,false)); 这个时候这个资源是通过app本地加载还是网上加载的? 2.dcc 有之前安装到手机上的app (a版本),后...
来源: Laya_社区 发布时间: 20161204
...请: 与内容相关的链接 提交 1 个回复 geyx 赞同来自: var handler : laya.utils.Handler = Laya.Handler.create(this, this.onGetStartScene); Laya.Scene.open("test/TestScene.scene", true, null, handler )在回调里加3D模型就显示正常了。 2020-01-15 0 0 分享 微博 QZO...
来源: Laya_社区 发布时间: 20200115
...ya.loader.load({ url: respath.font_SemiBold, type: Laya.Loader.TTF }, Laya.Handler.create(this, (obj: object) => { // 第二个参数:成功回调 console.log("预加载字体结束>>>>", obj) if (config.H_SCREEN) { this.loadTopBarUI() } else {...
来源: Laya_社区 发布时间: 20250616
...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
...od/f8.png", "/public/test/img/food/f9.png", ]; Laya.loader.load(urls, Handler.create(this, onAssetLoaded), Handler.create(this, onLoading, null, false), Loader.TEXT); 这个样能加载。 但是 var roleAni = new Laya.Animation(); roleAni.loadImages(); roleAni.play(); Laya.stage.addCh...
来源: Laya_社区 发布时间: 20170718
...er.IMAGE}, {url:"res/Public@sl4615.mp3",type:laya.net.Loader.SOUND} ],Laya.Handler.create(this,onLoaded)); /*登录界面*/ var resArray=[ {url:"res/LoginView.fui",type:laya.net.Loader.BUFFER}, {url:"res/LoginView@atlas0.png",type:laya.net.Loader.IMAGE} ]; var loadcount=resArray.length; function o...
来源: Laya_社区 发布时间: 20171207
..., cache:Boolean = true):void 加载资源。 Laya.loader.load(AniConfPath, Handler.create(this, createAnimation), null, Loader.ATLAS); 这里的load只有三个参数,而事实上用到4个,不清楚。。。 还有ani.index = 1;我改成0,-1,2,可是在经过play后面自动变成...
来源: Laya_社区 发布时间: 20160712
... Laya.Scene3D; Laya.Sprite3D.load("Models/Ball.lh", Laya.Handler.create(this, function(sp){ for(var i=0; i<3; i++){ var ball = myscene.addChild(sp.clone()); ball.name = i.toString();...
来源: Laya_社区 发布时间: 20200723