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

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

51. httpRequest send返回Request failed Status:0 [ 70%]

... this.errorHandler); xhr.send(url, "", "get", "arraybuffer"); } } GameMain.prototype.completeHandler = function (URL, id, data) { // private completeHandler(data: Object, URL: string, id: number): void { //加载完成返回的data是arraybuffer; //......这里处理我们加密的图片数据,...

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

52. Laya api 中可能的bug [官方来看] [ 69%]

...ext,x,y){ var childs=this._childs; this._childs=this._showGridList; _super.prototype.render.call(this,context,x,y); this._childs=childs; }2.core中Sprite的zorder的set方法中 有一行代码有疑似bug,麻烦官方帮忙确认 /**z排序,更改此值,则会按照值的大小对同一容器...

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

53. layaNative测试运行原生app时,laya3D解析动画处报错 [ 67%]

...upportWebGLPlusAnimation) {                     avatar.prototype._cloneDatasToAnimator = avatar.prototype._cloneDatasToAnimatorNative;                 /*__JS__ */FloatKeyframe = window.conchFloatKeyframe;                 /*__JS__ */Vector3Keyframe ...

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

54. 通过laya设计模式制作的,要怎么给按钮绑定事件呢? [ 67%]

...; } CLASS$(MainSceneUI,'ui.MainSceneUI',_super); var __proto__=MainSceneUI.prototype; __proto__.createChildren=function(){ _super.prototype.createChildren.call(this); this.loadScene("MainScene"); } return MainSceneUI; })(Scene); 自动生成了这一段代码

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

55. LayaBox进阶之UI管理类 [ 67%]

...rt class PatchManager{} (function(){ let _proto:any;  _proto = Laya.Scene.prototype; _proto.createView = function(view:Object){ if (view && !this._viewCreated) { this._viewCreated = true; Laya.SceneUtils.createByData(this, view); }  this.onInit(); this.onShow();  Laya.timer.frameLoop(1, t...

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

56. 截屏函数异常E/LayaBox:className:layaair/game/browser/ExportJavaFunction,methodName:captureScreen [ 66%]

...layaair/game/browser/ExportJavaFunction,methodName:captureScreen Offline.prototype.setSave=function(){ if( Laya.Browser.window.conch ) { var content=Laya.Browser.context; var width=800; var height=500; Laya.Browser.window.conch.captureScreen(function(content,width,height){ Laya.Browser.window.conc...

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

57. 【简单跑酷--JS版】---Lv.4 添加玩家 [ 66%]

...ayer Laya.class(Player,"Player", laya.display.Sprite); var _proto = Player.prototype; //是否缓存了 Player.cached = false; _proto.init = function(){ //动画缓存起来 if(!Player.cached){ Player.cached = true; //根据不同的动画 来创建动画模板 laya.display.Animation.createFrames(['...

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

58. Cannot read property 'toDefault' of undefined报错是什么原因 [ 65%]

... // this.phasorSpriter3D = new Laya.PhasorSpriter3D(); } MousePickingScene.prototype.lateRender = function (state) { MousePickingScene.__super.prototype.lateRender.call(state); //从屏幕空间生成射线 this.point.elements[0] = Laya.stage.mouseX; this.point.elements[1] = Laya.stage.mouseY; this....

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

59. 微信小游戏加载资源问题 [ 65%]

...ingContext2D = function () { }; MiniAdpter.window.CanvasRenderingContext2D.prototype = MiniAdpter.window.wx.createCanvas().getContext('2d').__proto__; MiniAdpter.window.document.body.appendChild = function () { }; MiniAdpter.EnvConfig.pixelRatioInt = 0; Laya.Browser["_pixelRatio"] = MiniAd...

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

60. 为什么自定义shader大图正常,小图就被缩小了 [ 63%]

... texture纹理对象 vb顶点数组 ib顶点索引数组 */ myShaderSprite.prototype.init = function(texture,width_Size,height_Size,vb,ib){ this.vBuffer = Laya.VertexBuffer2D.create(); this.iBuffer = Laya.IndexBuffer2D.create(); this.ibData = new Uint16Array(); if(vb) { vbArray = vb; } else{ vbArray...

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