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

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

161. LayaAir引擎工具会员专属功能介绍(TypeScript-简介篇(TS)-LayaAir引擎简介) [ 69%]

...下: ```typescript //先加载plf类型的合并后文件Image.json Laya.loader.load([{url: "res/Image.json", type: "plf"}], Handler.create(this, function():void { //在回调里,正常使用原来的图集 Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, function():void { var img:T...

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

162. [临时解决]bug?加载sk问题 [ 68%]

...是加载sk完成前,就调用动画导致 因此,在最开始用Laya.loader.Load(["drgon.sk"]......)这样的方式预加载 !!!结果,预加载时报错,就是这里: laya.core.js的7430行    if (this._pos_+2 > this._length)throw "getUint16 error - Out of bounds"; 但是,...

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

163. Animation创建动画模板问题 [ 68%]

...ion.createFrames([{ url: "res/atlas/actor/character/idle.json", type: Laya.Loader.ATLAS }], ActionType.MOVE_STAND);   异常信息如下: TypeError: url.indexOf is not a function at Function.URL.formatURL (file:///E:/EarlyChildhood/EARLY_GAME_001/bin/libs/laya.core.js:4418:12) at Function.Loader....

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

164. Laya.loader.clearTextureRes引起的内存泄露以及恢复图片显示闪烁 [ 68%]

Laya.loader.clearTextureRes引起的内存泄露以及恢复图片显示闪烁 1、引擎和ide版本都是2.1.2 2、点击屏幕会绘制一个光圈特效 3、点击第1次加载资源使用后释放调用Laya.loader.clearTextureRes 4、再点第2次      1、图片代码中指示出必然会...

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

165. SCALE_FIXED_WIDTH适配屏幕的问题 [ 68%]

...Laya.View.regComponent("ScaleButton", ScaleButton);             Laya.loader.load("res/atlas/com/loading.atlas", Laya.Handler.create(this, this.loadGame));         }         private loadGame(): void {             var resArray = [                 { url: "res/atlas/lobby/cre...

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

166. tiledMap显示层级问题 [ 68%]

...,走到临界点的时候读取需要加载的区块名称,通过Laya.loader.load(this.m_mapName, Laya.Handler.create(this, this.onLoadCompleteHandler), null, Laya.Loader.ATLAS);加载资源,成功后调用this.m_tileMap.createMap(OOXX);来显示。不知道这样调用是否正确? 因为...

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

167. 如何用代码控制panel的vscroll滚动幅度 [ 68%]

...ueying 赞同来自: package { import laya.display.Sprite; import laya.net.Loader; import laya.ui.Panel; import laya.utils.Handler; public class LayaAirDemo { public function LayaAirDemo() { Laya.init(600,600); Laya.stage.bgColor='#EEFFCC'; Laya.loader.load("res/atlas/comp.json",Handler.create(this,...

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

168. IDE发布之后,在res下并没有任何资源,这是什么情况啊? [ 68%]

...也就是预加载资源的地方),资源路径写错了。改成 Laya.loader.load("res/atlas/Resources.json",laya.utils.Handler.create(this,this.onReader),null,laya.net.Loader.ATLAS);就好了 Buzhihew • 2017-01-11 15:50 @Monica:.......我.....总之谢谢啊啊啊 Monica • 2017-0...

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

169. 缓存清除方法clearTextureRes [ 68%]

缓存清除方法clearTextureRes    Loader.clearTextureRes=function(url){             url=URL.formatURL(url);             var arr=laya.net.Loader.getAtlas(url);             var res=arr ? laya.net.Loader.getRes(arr[0]):laya.net.Loader.getRes(url);       ...

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

170. 通过laya设计模式制作的,要怎么给按钮绑定事件呢? [ 68%]

...olor = "#101825"; this.init() } init() { // 预加载图集 Laya.loader.load("res/atlas/comp.atlas", Laya.Handler.create(this, this.onLoaded ), null, Laya.Loader.ATLAS) } onLoaded(){ Laya.stage.addChild(new TopUI()) Laya.stage.addChild(new TabUI()) this.getGold.on(Laya.Event.MOUS...

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