• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 303 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0226 秒)

241. layanative安卓端需要怎么添加ttf字体,需要增加两种字体? [ 57%]

...; 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

242. playByFrame动画监听问题,真不会了。就一个小问题。监听不到动画结束。。。 [ 57%]

...轴动画里创建的多个动画,怎么分别调用?如图 请问下loader如何强制加载一个文件,避免浏览器的缓存 问题状态 最新活动: 2017-09-27 15:37 浏览: 1114 关注: 2 人 haiboannacom • 2017-09-27 15:34 上传的例子里生效了啊。之前是只走0-60帧。...

来源: Laya_社区 发布时间: 20170927

243. 怎么对graphics画出来的图片进行鼠标点击拖动??? [ 56%]

..."; 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

244. 为什么说没有​ playByFrame方法 [ 55%]

...还有 我只加载动画使用的资源好想不可以?还有使用Laya.Loader的方式能不能加载ani文件? 分享:Sprite 转换成3D贴图(Texture2D)的方法,如果有更好的方法,请告诉我。 有没有Unity3d的Vector3.Angle(计算两个三维向量之间的角度)...

来源: Laya_社区 发布时间: 20170926

245. 微信小游戏中加载unity导出的场景报错the .lh file root type must be Scene [ 55%]

... 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

246. 【简单跑酷--JS版】---Lv.3 添加地板 [ 55%]

...要预加载 上一节有讲到 修改加载的地方 //加载图片 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

247. videoNode在安卓上不能播放 [ 54%]

...   Laya.stage.on(Laya.Event.MOUSE_DOWN, () => {             Laya.loader.load("resources/916.mp4").then(() => {                 this.play();             });         })     }同时建议您将“项目设置->缩放模式”更改为fixedwidth,便于手机调试...

来源: Laya_社区 发布时间: 20231007

248. 动效模板(JavaScript-LayaAir基础篇(JS)-动画基础) [ 53%]

...; //加载图集资源,加载成功后将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

249. 多线程Worker · LayaAir3.3 · 引擎文档 · LAYABOX [ 53%]

....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

250. 动效模板(TypeScript-LayaAir基础篇(TS)-动画基础) [ 53%]

...; //加载图集资源,加载成功后将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