大约有 371 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0046 秒)
...的地方,只能在每次创建的时候加载字体! 可以通过Laya.loader.load来加载字体,但是这样会造成回调或者promise,使得整个程序都陷在异步里 可以在初始场景加载各种资源,但是问题是我要单独测试某个场景的时候,加载字体就...
来源: Laya_社区 发布时间: 20250910
...MeshSprite3D(mesh); //方法二:预加载,创建为Sprite3D类型 Laya.loader.create("LayaScene_01/Assets/model/loveScene_jianzhu.lm",Laya.Handler.create(this,this.onCreateComplete)); //预加载完成后回调 private onCreateComplete():void { //创建预加载的模型网格 var mesh:Laya.Mesh...
来源: Laya_社区 发布时间: 20171109
...("res/room.lh"); //方法二:预加载,创建为Sprite3D类型 Laya.loader.create("res/room.lh",Laya.Handler.create(this,this.onCreateComplete)); //预加载完成后回调 private onCreateComplete():void{ //实例化加载并创建好的3D对象 var sprite3D:Laya.Sprite3D = Laya.loader.getRe...
来源: Laya_社区 发布时间: 20170809
...gba(0,0,0,0.1)"; //加载图集成功后,执行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场景中的动画 ...
来源: Laya_社区 发布时间: 20190217
...如果是图片或者声音类型,不会触发加载错误事件 用Laya.loader批量加载图片或者声音并指定加载类型时,如果加载错误,并不会触发错误事件。 Laya.loader.on(Laya.Event.ERROR, this, function(){ console.log("err"); }); Laya.loader.load([{url:"res/gene...
来源: Laya_社区 发布时间: 20180926
...画在pc模拟器播放OK在手机端不显示 loaded : function(){ this.loader = Laya.loader; this.loader.retryNum = 0;//无加载重试 this.urls = ['imgdebris/imgdebris.atlas','imgdebris/p1_slj.png',]; // this.loader.load(this.urls[0], Laya.Handler.create(this, this.onAssetloaded)); this.loader.l...
来源: Laya_社区 发布时间: 20190117
...成了.ani 文件,可是怎么在主页面上显示啊。 教程中 Laya.loader.load("./res/atlas/ui.atlas",Handler.create(this,onLoaded));这个ui.atlas 死活没看见啊。 代码复制了,不行 啊,坑在哪里???? package{import laya.net.Loader;import laya.utils.Handler;import...
来源: Laya_社区 发布时间: 20190708
...: 与内容相关的链接 提交 1 个回复 Laya_XS 赞同来自: Laya.loader.load方法加载文件时,如果网络中断,在尝试加载失败后会触发Laya.loader.on("error",this,onLoader); function onLoaded(){ } 不知道你是怎么写的,我们自己做项目都是这样做的...
来源: Laya_社区 发布时间: 20180402
...行域 的详解 如何定义动画播放过某帧后的回调函数 Laya.loader.create 进度回调函数执行两次 Warning!,this class[MiniAdpter] already exist: Object {init: } js调as函数 undifine 怎么停止正在运行Laya.timer.frameLoop的回调函数 load 加载完图集 回调函数...
来源: Laya_社区 发布时间: 20180913
...文档的例子试了不行 // 程序入口 module laya { import Loader = Laya.Loader; import Handler = Laya.Handler; export class Loader_MultipleType { private ROBOT_DATA_PATH: string = "res/swf/star.swf"; private ROBOT_DATA_PATHS: string = "res/swf/star.json...
来源: Laya_社区 发布时间: 20180203