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

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

321. 关于创建Sprite获取大小 [ 64%]

...果你要单个获取的话 window.Laya.loader.load(value.url, ls.Handler.create(this, function () { _this.graphics.clear() var texture = window.Laya.loader.getRes(value.url) _this.graphics.drawTexture(texture) _this.scaleX = _this.set_width / texture.sourceWidth _this.pivotX = _this.row_data.proper...

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

322. 微信3D小游戏 ,Laya2.2.0 在微信工具中运行,WebGLShader 崩溃,如截图,100%重现,在安卓/iOS真机上不出这个问题 [ 64%]

...ntext': parameter 1 is not of type 'WebGLShader'.    at ShaderInstance._createShader (laya.d3.js:1)     at ShaderInstance._create (laya.d3.js:1)     at new ShaderInstance (laya.d3.js:1)     at ShaderPass.withCompile (laya.d3.js:1)     at SubMeshRenderElement._render (laya.d3.js:1)  ...

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

323. 添加或修改物理ChainCollider属性points时,报错 [ 64%]

...,使用对象池创建子弹 let flyer: Laya.Sprite = Laya.Pool.getItemByCreateFun("bullet", this.bullet.create, this.bullet); flyer.pos(Laya.stage.mouseX, Laya.stage.mouseY); this._gameBox.addChild(flyer); this._chains.points="118,99,158,70,218,99,258,70,318,99,358,70,418,99,458,70...

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

324. 小游戏内 个别手机出现图片花了 像马赛克一样的东西,很多图片不显示 [ 64%]

... "type":Laya.loader.ATLAS } ] Laya.loader.load(loadData, Handler.create(null, onload), Handler.create(null, onProgress, null, false)); 熊猫大侠 • 2018-05-25 17:06 @170*****199:肯定资源加载完成 才能跳转战斗啊 170*****199 • 2018-05-25 17:07 对啊,是加载完进的...

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

325. box2d引擎报错问题 [ 64%]

...2d.b2Fixture.GetType (laya.physics.js:430)     at box2d.b2ContactFactory.Create (laya.physics.js:576)     at box2d.b2ContactManager.AddPair (laya.physics.js:586)     at box2d.b2BroadPhase.UpdatePairs (laya.physics.js:308)     at box2d.b2ContactManager.FindNewContacts (laya.physics.js:584)  ...

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

326. Animation创建和销毁的问题 [ 63%]

....loader.load(["res/fish_1/stand.atlas","res/fish_1/attack.atlas"], Handler.create(this, this.onAnimAtlasLoaded)); } } private function onAnimAtlasLoaded():void { testAnim1 = new Animation(); testAnim1.loadAnimation("res/fish_1/fish_1.ani"); Laya.stage.addChild(testAnim1); testAnim1.play(0,true,"stan...

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

327. LayaAir中怎么使用node.js 的 socket.io [ 63%]

...是这4部操作,不知道是否正确,现在出现 TypeError: Cannot create property 'path' on number '10000' at new r (file:///Users/bingbing/MahjongProject/MahjongLaya/bin/socket.io.js:1:15053) zhishaofei3 • 2017-09-22 23:31 @piaobo80:链接打不开了怎么办 还有链接吗 重发一下...

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

328. Laya.load在OPPO小游戏端无法加载带有不安全字符的图片网址 [ 63%]

...tps://lupic.cdn.bcebos.com/2 ... 3B%3B Laya.loader.load(_url, Laya.Handler.create(this, res => { let a = new Laya.Image(_url); Laya.stage.addChild(a); })) 以下是安卓层面输出日志:09-22 11:08:10.811 27895-28111/? D/jswrapper: JS: [WARN]: [warn]Retry to load: https://lupic.cdn.bcebos.co...

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

329. Laya.Pool用法 [ 63%]

...o     /**      * 协议对象池      * Author :Terry        * Created: 2017-08-07 09:44:25      */     export class ProtoPool {         private static _dic: Laya.Dictionary;         public static PROTO_HEAD: string = "proto_Head";         public static PROTO_BINARY_REQU...

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

330. 导出的3D资源加载报错 [ 63%]

.../开启统计信息 Stat.show(); //预加载角色动画资源 Laya.loader.create("res/LayaScene_layaScene/layaScene.lh",Handler.create(this,onModelOK),null,Sprite3D); } private function onModelOK():void { //添加3D场景 var scene:Scene = new Scene(); Laya.stage.addChild(scene); //创建摄像机(...

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