大约有 174 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0057 秒)
...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_社区 发布时间: 20181202
...72:13) at http://127.0.0.1:53462/game/code.js:97630:17 at Laya.loader.load.Handler.create (http://127.0.0.1:53462/game/code.js:102231:13) at Handler.__proto.runWith (http://127.0.0.1:53462/game/code.js:711:59) 查看了应该是微信自带的浏览器内核不支持Function.app...
来源: Laya_社区 发布时间: 20180302
...ontainer的位 Laya.init()后,是否还能再次改变stage的宽高 请问Loader.load支持支持swf格式的预加载吗? 3种支持语言在选择上有讲究吗? 问题状态 最新活动: 2018-05-03 12:13 浏览: 3589 关注: 1 人
来源: Laya_社区 发布时间: 20180503
...ir' of undefined崩溃 这个是出错信息 this.basePath=this._atlasPath?Loader.getAtlas(this._atlasPath).dir:this._url.split(".swf")[0]+"/image/"; 我们采用的播放模式是this.effectMovieClip.load(effectsPath,true); effectsPath 是路径 我们的swf 文件在附件中, 附件 : --...
来源: Laya_社区 发布时间: 20180408
...tChildAt(13) as MeshSprite3D; var texture:Texture2D = Loader.getRes("res/heightMap.png") as Texture2D; //通过高度图纹理和最大高度最小高度生成MeshTerrainSprite3D var terrainSprite:MeshTerrainSprite3D = MeshTerrainSprite3...
来源: Laya_社区 发布时间: 20170505
...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
... Laya.WebGL); let res:any = []; res.push({url:"res/atlas/comp.atlas", type:Loader.ATLAS}); Laya.loader.load(res, Handler.create(null, this.__onLoaded)); } private __onLoaded(): void { Laya.stage.addChild(new Test()); } } new Entry(); Test.ts import Sprite = Laya.Sprite; class Test extends Sprite{...
来源: Laya_社区 发布时间: 20180308
...n: string = 'images/button.png'; constructor() { Laya.init(200, 300); Laya.loader.load(this.skin, Laya.Handler.create(this, () => { this.btn = this.createBtn(this.skin); this.btn.on(Laya.Event.CLICK, this, this.onClick); })); } /** * 创建btn */ private createBtn(skin: string): Laya.Button { let...
来源: Laya_社区 发布时间: 20170511
...关于遮罩的用法,在哪块可以找到? Laya.URL.basePath与Laya.loader.load用法 const 用法 关于几种文本的区别与用法 能否恢复Animation.getGraphicBounds在1.6时的用法 关于__JS__的用法有没有相关教程或者例子链接 贝塞尔用法 Laya.Pool用法 Matrix4x...
来源: Laya_社区 发布时间: 20170323
...资源预加载之后,使用之前加上: var texture:Texture = Laya.loader.getRes(e.url); texture.bitmap.enableMerageInAtlas = false; rgxianzhan • 2017-10-23 19:39 不能在加载的时候设置大图合集么,使用的地方真不少 Monica • 2017-10-23 20:01 @rgxianzhan:关闭大图合...
来源: Laya_社区 发布时间: 20171023