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

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

991. Laya3D场景加载问题 [ 66%]

...     constructor() { super(); }     onAwake(): void {         Laya.loader.create(this.resource, Laya.Handler.create(this, this.onPreLoadFinish));     }     onPreLoadFinish() {         //初始化3D场景         let test = Laya.Loader.getRes("gate/Conventional/Test.ls")       ...

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

992. 有偿解答 Laya致命问题 -预加载,进度问题 [ 66%]

... Laya致命问题 -预加载,进度问题 使用情况描述: 使用Laya.loader.load加载2d和声音资源使用 Laya.loader.create加载3D场景和模型资源 问题描述: 预加载效果不明显(每次进入时,加载进度都非常慢,需要花半分钟加载,20mb的资源)加载模型...

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

993. GlowFilter和TimeLine/Tween一起用的问题 [ 66%]

... Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628";   Laya.loader.load(apePath, Handler.create(this, setup)); })();   function setup() { createApe(); applayFilter(); }   function createApe() { ape = new Sprite(); ape.loadImage(apePath);   var texture = Laya.loader.getRes(apePath);...

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

994. 请问在设计模式下制作的UI页面,到底怎么在代码里使用???官方教程不一样 [ 66%]

...图片资源的atlas文件,何解???例如官方的例子:Laya.loader.load(["./res/atlas/ListPage.atlas", "res/atlas/template/ButtonTab.atlas"], Handler.create(this, this.onLoaded)); 而我F12发布,根本没有这个ListPage.atlas,只有ButtonTab.atlas     附件 : --> 2017-09-04 ...

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

995. 个人笔记:失焦或静音状态下播放背景音乐无效的解决方案 [ 66%]

...uted){ return null; } }; var tSound; if (!Browser.onMiniGame){ tSound=Laya.loader.getRes(url); } if (!soundClass)soundClass=SoundManager._soundClass; if (!tSound){ tSound=new soundClass(); tSound.load(url); if (!Browser.onMiniGame){ Loader.cacheRes(url,tSound); } }; var channel; channel=tSound.play(...

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

996. 引擎文档能不能重新规划一下,对于新手很不友好 [ 66%]

...,或者百度经验这类的,不像是给程序员看的 2、比如说Loader这个类,api文档里面loader.load()传入的就是具体的object对象,而示例代码传入的就是包含多个对象的数组。 layabox • 2016-12-12 21:19 嗯。小游戏这块文档,也会重新梳理。...

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

997. 关于资源加载的问题 [ 66%]

...pg"}, {url : "res/atlas/games/game_13/image.atlas"} ]; Laya.loader.load(loadArray, Handler.create(null, ()=>{ this.uiView = new SharkItOff(); Laya.stage.addChild(this.uiView); })); 先加载图集,图集加载完再new一个界面。但是界面里的图片都不显示 thekingret...

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

998. laya里的所有单例都没有初始值 [ 66%]

...       trace("Laya.stage",Laya.stage,"Laya.timer",Laya.timer,"Laya.loader",Laya.loader)             Laya.stage.scaleMode = GameConfig.scaleMode;                          Laya.stage.screenMode = GameConfig.screenMode;             Laya.stage.align...

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

999. spine 推荐使用方式 [ 66%]

...通用节点,避免重复创建     3、释放资源直接调用Laya.loader.clearTextureRes     4、每次使用之前,先检测Templete对应的Texture资源是否释放过,如果释放过先恢复Texture的资源,避免Laya.Skeleton使用时发现资源不存在自己去恢复,会有...

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

1000. socket.sent [ 66%]

....Stage.SCREEN_NONE; var uiResArr =[ {url:"res/atlas/comp.atlas",type: Laya.Loader.ATLAS}, ]; Laya.loader.load (uiResArr , Laya.Handler.create(this,this.onLoded));      //加载图片 this.byte = new Laya.Byte(); //这里我们采用小端 this.byte.endian = Laya.Byte.LITTLE_ENDIAN; this.socket =...

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