大约有 303 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0226 秒)
Laya_社区(234) Laya2.0_文档(27) Laya3.0_api(21) Laya3.0_文档(11) Laya2.0_示例(3) Laya_示例(3) laya_api(2) Laya2.0_api(2)
...; import laya.utils.Handler; /** * ... * @author ww */ public class TestTTFLoader { public function TestTTFLoader() { Laya.init(1000, 900); Laya.loader.load("res/remember.ttf",new Handler(this,test)); } private function test():void { var text:Text; text = new Text(); text.fontSize = 30;...
来源: Laya_社区 发布时间: 20191211
...轴动画里创建的多个动画,怎么分别调用?如图 请问下loader如何强制加载一个文件,避免浏览器的缓存 问题状态 最新活动: 2017-09-27 15:37 浏览: 1114 关注: 2 人 haiboannacom • 2017-09-27 15:34 上传的例子里生效了啊。之前是只走0-60帧。...
来源: Laya_社区 发布时间: 20170927
..."; Laya.stage.bgColor = "#232628"; //这里是我注释掉的代码 //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.Ap...
来源: Laya_社区 发布时间: 20171106
...还有 我只加载动画使用的资源好想不可以?还有使用Laya.Loader的方式能不能加载ani文件? 分享:Sprite 转换成3D贴图(Texture2D)的方法,如果有更好的方法,请告诉我。 有没有Unity3d的Vector3.Angle(计算两个三维向量之间的角度)...
来源: Laya_社区 发布时间: 20170926
... content && (this._data=content); if (this._cache)Loader.cacheRes(this._url,this._data); this._customParse=false; this.event("progress",1); this.event("complete",(this.data instanceof Array)? [this.data] :this.data); } ...
来源: Laya_社区 发布时间: 20180101
...要预加载 上一节有讲到 修改加载的地方 //加载图片 Laya.loader.load(["res/background.png", "res/m_background.png", "res/floor.png"], laya.utils.Handler.create(this, onLoaded), laya.utils.Handler.create(this, onLoading, null, false)); 首先同样我们到runGame目录新建一个Fl...
来源: Laya_社区 发布时间: 20160728
... Laya.stage.on(Laya.Event.MOUSE_DOWN, () => { Laya.loader.load("resources/916.mp4").then(() => { this.play(); }); }) }同时建议您将“项目设置->缩放模式”更改为fixedwidth,便于手机调试...
来源: Laya_社区 发布时间: 20231007
...; //加载图集资源,加载成功后将UI界面添加到舞台上 Laya.loader.load("./res/atlas/comp.atlas",Laya.Handler.create(this,onLoaded)); function onLoaded(){ //实例化导出的UI类 var efc = new ui.TestPUI(); //添加到舞台 Laya.stage.addChild(efc); } ``` 运行后,按钮被按...
来源: Laya2.0_文档 发布时间: 20210715
....init(600,400,Laya.WebGL); //设置Laya提供的worker.js路径 Laya.WorkerLoader.workerPath = "libs/worker.js"; //开启worker线程 Laya.WorkerLoader.enable = true; //加载引擎需要的资源 Laya.loader.load("../atlas/comp.atlas",Laya.Handler.create(this,this.onLoaded)); } private onLoaded():v...
来源: Laya3.0_文档 发布时间: 20251010
...; //加载图集资源,加载成功后将UI界面添加到舞台上 Laya.loader.load("./res/atlas/ui.atlas",Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ //实例化导出的UI类 var efc:ui.EffectAnimationDemoUI = new ui.EffectAnimationDemoUI(); //添加到舞台 Laya.stage...
来源: Laya2.0_文档 发布时间: 20210715