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

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

131. 设置适配SCALE_FIXED_WIDTH,结果少部分andriod机型不能正确适配屏幕 [ 64%]

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

132. 微信环境下面Laya.Browser.window.protobuf.load不能读取本地的proto文件 [ 63%]

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

133. websocket是否支持ipv6 [ 62%]

...ontainer的位 Laya.init()后,是否还能再次改变stage的宽高 请问Loader.load支持支持swf格式的预加载吗? 3种支持语言在选择上有讲究吗? 问题状态 最新活动: 2018-05-03 12:13 浏览: 3589 关注: 1 人

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

134. 播放swf动画的时候,会出现 Cannot read property 'dir' of undefined崩溃 [ 61%]

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

135. 3D中如何限制角色的行走区域? [ 60%]

...tChildAt(13) as MeshSprite3D;               var texture:Texture2D = Loader.getRes("res/heightMap.png") as Texture2D;               //通过高度图纹理和最大高度最小高度生成MeshTerrainSprite3D               var terrainSprite:MeshTerrainSprite3D = MeshTerrainSprite3...

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

136. SCALE_FIXED_WIDTH适配屏幕的问题 [ 60%]

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

137. Sprite用graphics绘制图形后,mouse_over触发scale显示有问题 [ 59%]

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

138. 无法触发浏览器文件上传框 [ 58%]

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

139. viewport 的用法 [ 56%]

...关于遮罩的用法,在哪块可以找到? Laya.URL.basePath与Laya.loader.load用法 const 用法 关于几种文本的区别与用法 能否恢复Animation.getGraphicBounds在1.6时的用法 关于__JS__的用法有没有相关教程或者例子链接 贝塞尔用法 Laya.Pool用法 Matrix4x...

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

140. 特效播放问题 [ 56%]

...资源预加载之后,使用之前加上: 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