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

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

741. 时间轴动画(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 56%]

...功后,执行onLoad回调方法 Laya.loader.load("res/atlas/ui.atlas", Handler.create(this, onLoaded)); ``` 第二步:创建Animation实例,加载动画文件 ```java //创建一个Animation实例 var tl:Animation = new Animation(); //加载动画文件 tl.loadAnimation("TimeLine.ani"); ``` ...

来源: Laya2.0_文档 发布时间: 20210715

742. 设置相机的skyboxMaterial无效 [ 56%]

...LAG_SKY; //天空盒 Laya.BaseMaterial.load("res/skyBox/skyBox.lmat", Laya.Handler.create(null, function (mat) { camera.skyboxMaterial = mat; // Laya.timer.frameLoop(1, this, function () { // mat.rotation += 0.1; // }); })); skyBox.zip 2018-10-17 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 ...

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

743. 加载一个txt文件 getRes出来类型为string 能转换成数组吗 [ 56%]

...来类型为string 能转换成数组吗 Laya.loader.load("res/text.txt", Handler.create(this, onAssetLoaded1), null, Loader.TEXT); var pic1 = Loader.getRes("res/2D特效/text.txt"); console.log(typeof pic1); 输出的类型为string 2017-06-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...

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

744. load 跨域请求 [ 56%]

load 跨域请求 Laya.loader.load(resUrl+'bin/res/atlas/dice.json', Laya.Handler .create(this, this.init), null, Laya.Loader.ATLAS); 这个json提示跨域了,怎么解决好 2017-07-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...

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

745. 怎么使用ttf,版本2.0.2 [ 56%]

...交 3 个回复 Laya_Aaron 赞同来自: Laya.loader.load("abc.ttf",Laya.Handler.create(this, this.abc)); demo里没写预加载字体的代码, 先加载字体,然后再在回调方法里 初始化场景 abc():void{         GameConfig.startScene && Laya.Scene.open(GameConfig....

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

746. native2.0压缩纹理如何使用 [ 56%]

...微博 QZONE 微信 xiaoman122 赞同来自: Laya.loader.load("res/1.pkm", Handler.create(null, function():void {     var spr:Sprite = new Sprite();     spr.loadImage("res/1.pkm");     spr.pos(100, 100);     Laya.stage.addChild(spr); }), null, Loader.IMAGE); 附件就是tp转的图片,这...

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

747. 自定义loadingView [ 56%]

....loader.load([{url: "res/atlas/comp.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); } 这里的dd=__JS__("window.loadingView"); 换成 ts 怎么写 Apple • 2018-04-16 16:22 直接 Laya.Browser.window.loadingView

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

748. 骨骼动画的使用(TypeScript-3D基础(TS)-LayaAir3D之Animator动画) [ 56%]

...ya.Scene3D.load("res/LayaScene_LayaMonkey/Conventional/LayaMonkey.ls",Laya.Handler.create(this,function(s){ Laya.stage.addChild(s); })); ``` ![](img/6.gif)(图6)

来源: Laya2.0_文档 发布时间: 20210715

749. 骨骼动画的使用(JavaScript-3D基础(JS)-LayaAir3D之Animator动画) [ 56%]

...ya.Scene3D.load("res/LayaScene_LayaMonkey/Conventional/LayaMonkey.ls",Laya.Handler.create(this,function(s){ Laya.stage.addChild(s); })); ``` ![](img/6.gif)(图6)

来源: Laya2.0_文档 发布时间: 20210715

750. 请教:粒子的官方教程中的配置文件是从哪里得到了? [ 56%]

...码时,有一句是 Laya.loader.load("res/particles/particleNew.part", Handler.create(this, onAssetsLoaded), null, Loader.JSON);   其中这个 res/particles/particleNew.part文件是怎么获得的?谢谢   如下图 附件 : --> 2018-03-17 添加评论 免费帖 --> 分享 微博 QZONE 微...

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