大约有 520 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0044 秒)
Laya_社区(399) Laya2.0_文档(39) Laya3.0_api(32) Laya_示例(19) Laya3.0_文档(15) Laya2.0_示例(9) laya_api(5) Laya2.0_api(2)
...果你要单个获取的话 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
...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
...,使用对象池创建子弹 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
... "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
...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
....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
...是这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
...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
...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
.../开启统计信息 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