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

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

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

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

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

722. native2.0压缩纹理如何使用 [ 57%]

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

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

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

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

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

725. laya.ui.Button_API3.0 [ 57%]

...一个 Button 实例。 package { import laya.ui.Button; import laya.utils.Handler; public class Button_Example { public function Button_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/ui/button....

来源: Laya3.0_api 发布时间: 20231115

726. Laya tiledmap 监听事件未响应 [ 56%]

...and_water.json", new Rectangle(0, 0, Laya.stage.width, Laya.stage.height), Handler.create(this, this.mapLoaded), null, new Point(1600, 800));      }      private mapLoaded(): void {         let _mapSprite = this.tiledMap.mapSprite();         _mapSprite.mouseEnabled = true;         ...

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

727. layaAir IDE UI导出显示异常 [ 56%]

...里面加载的是json格式的: Laya.loader.load("res/atlas/comp.json", Handler.create(this, onAssetLoaded), null, Loader.ATLAS);   所有导致了图集位置错乱,麻烦技术修下这个bug. 建议ui编辑器默认就导出成json格式大图~~   2017-11-13 0 0 分享 微博 QZONE 微信 为...

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

728. 求教 JS项目的Promise如何使用 [ 56%]

...调方法绘制图片并添加到舞台 Laya.loader.load(this.monkey2,Laya.Handler.create(this,graphicsImg)); function graphicsImg(){ var img = new Laya.Sprite(); //获取图片资源,绘制到画布 img.graphics.drawTexture(Laya.loader.getRes(this.monkey2),100,50); //添加到舞台 Laya.stage.ad...

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

729. 生成的粒子特效怎么设置colorComponentInter无效? [ 56%]

...adImage('res/jiezou/wenzi2.png'); Laya.loader.load("res/parts/qipao.part", Handler.create(this, onAssetsLoaded), null, Loader.JSON); } function onAssetsLoaded(settings) { settings.colorComponentInter = true; sp = new Particle2D(settings); sp.emitter.start(); sp.play(); sp.x = 90; sp.y = 55; this.add...

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

730. 按照打地鼠教程来无法正常加载资源 [ 56%]

...            ];             Laya.loader.load(resArr,Handler.create(this,this.onLoaded));         }         private function onLoaded():void{             //显示界面             var gameView:GameView = new GameView();         ...

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