大约有 2,746 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0069 秒)
Laya_社区(1928) Laya3.0_api(248) Laya2.0_api(162) laya_api(132) Laya_示例(81) Laya2.0_文档(81) Laya2.0_示例(65) Laya3.0_文档(49)
...aya.loader.load("res/atlas/sanguo.json",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS); function onLoaded(){ Laya.sg_sign = new sg_sign(); Laya.stage.addChild(Laya.sg_sign); } function onWxSign1(){ Laya.sg_sign.removeSelf(); Laya.Pool.recover("sg_sign",Laya.sg_sign); Laya.sg_index = new ...
来源: Laya_社区 发布时间: 20170725
...itureList.renderHandler = Handler.create(this, this.__renderFurnitureItem, null, false); this._furnitureList.repeatX = 5; this._furnitureList.repeatY = 3; this._furnitureList.vScrollBarSkin = ""; this._furnitureList.array = []; this..addChild(this._furnitureList); } private __renderFurnitu...
来源: Laya_社区 发布时间: 20180321
... 会提示报错信息: TypeError: Cannot read property 'meshRender' of null at onCompleteWarehouse1 (file:///E:/LayaWorkspace/javaScriptLaya/src/warehouse.js:74:43) at Handler.__proto.run (file:///E:/LayaWorkspace/javaScriptLaya/bin/libs/laya.core.js:697:26) at ResInfo.onLoaded (file:///E:/LayaWo...
来源: Laya_社区 发布时间: 20171226
...View 有时候会报错 TypeError: Cannot read property '_byteLength' of null at WebGLContext2D.__proto.flush (file:///F:/Chess/client2D2017_11_19/bin/libs/laya.webgl.js:4963:32) at SubmitCanvas.__proto.renderSubmit (file:///F:/Chess/client2D2017_11_19/bin/libs/laya.webgl.js:6294:18) at WebGLContext...
来源: Laya_社区 发布时间: 20171206
... Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(null, function (tex: Laya.Texture2D) { material.albedoTexture = tex; let item = 'res/layabox.png' let getres = Laya.lo...
来源: Laya_社区 发布时间: 20210604
...Laya.timer.frameLoop(1, this, animate); } private function animate(e:Event=null):void { ape.rotation += 2; //心跳缩放 scaleDelta += 0.02; var scaleValue:Number = Math.sin(scaleDelta); ape.scale(scaleValue, scaleValue); } } }
来源: Laya2.0_示例 发布时间: 20260303
...Laya.loader.load("sfx/hit01.mp3",new Laya.Handler(this,this.onBgmComplete),null,Laya.Loader.SOUND);然后在onBgmComplete的回调里面再调用播放,就会提示 [warn]Retry to load: sfx/hit01.mp3 [error]Failed to load: sfx/hit01.mp3 但是资源文件确实是存在的 实在不知道是什...
来源: Laya_社区 发布时间: 20180422
...FCC'; Laya.loader.load("res/atlas/comp.json",Handler.create(this,onLoaded),null,Loader.ATLAS); } private function onLoaded():void { //panel 切记设置宽高,否则panel不显示 var panel:Panel=new Panel(); panel.size(300,300); panel.pos(100,100); panel.vScrollBarSkin='comp/vscroll.png'; panel.h...
来源: Laya_社区 发布时间: 20170719
...+mapname+".json",viewRect, laya.utils.Handler.create(this, this.test));//, null, new Laya.Point(1600, 816)); } private test(){ var testLayer:Laya.MapLayer = this.tMap.getLayerByName("player"); this.tMapPlayer = new Laya.Sprite(); this.tMapPlayer.graphics.drawRect(0, 0, 100, 100, "#FF0000", "#0000FF"...
来源: Laya_社区 发布时间: 20170627
...form.rotate(new Laya.Vector3(-30, 0, 0), true, false); camera.clearColor = null; //添加方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.8, 0.8, 0.8); directionLight.direction = new Laya.Vector3(-1, -1, 2); //灯光开启阴影 dire...
来源: Laya_社区 发布时间: 20180717