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

大约有 397 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0039 秒)

291. png使用base64显示异常 [ 61%]

...有问题的,我是修改了你的代码后,现在显示正常了。 __proto.parseImgForBuffer = function(url,data){ var _this = this; var image; var onload = function () { // image.onload = null; // image.onerror = null; // var data = Laya.Texture2D._parse(image); // data._url = "sdfasf" // _th...

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

292. 发布QQ玩一玩,使用VScode,windows环境下打包问题。 [ 61%]

...qq.js的28829那一行,         /**@private */         __proto._setClipChanged=function(){             if (!this._clipChanged){                 this._clipChanged=true;                 this.callLater(this.changeClip);           ...

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

293. HttpRequest详解(JavaScript-LayaAir基础篇(JS)-数据与通信) [ 61%]

... } Laya.class(HttpRequestExtension, 'HttpRequestExtension', _super); var __proto = HttpRequestExtension.prototype; __proto.send = function (url, data, method, responseType, headers) { (method === void 0) && (method = "get"); (responseType === void 0) && (responseType = "text"); _super.prototype.send...

来源: Laya2.0_文档 发布时间: 20210714

294. laya中js 如何实现Sprite类继承 [ 61%]

...); /***一些基础信息***/ } Laya.class( Role , "Role" , Sprite ); var _proto_ = Role.prototype; /******/ return Role; })(); 2018-10-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_XS 赞同来自: 交...

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

295. 让 CylinderMesh 支持椎体 [ 61%]

...径大小   修改第二个循环结构, 也就是柱状顶点绘制   __proto.recreateResource=function(){ this._numberVertices=(this._slices+1+1)+(this._slices+1)*2+(this._slices+1+1); this._numberIndices=3 *this._slices+6 *this._slices+3 *this._slices; var vertexDeclaration=VertexPositionNormal...

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

296. 3D项目,关于挂点的问题,, [ 61%]

...灵节点。     *@return 是否关联成功。     */     __proto.linkSprite3DToAvatarNode=function(nodeName,sprite3D) 引擎里面这个函数,, 比方说我要把一个武器挂到角色手上,是不是,武器要有avatar文件,武器的骨骼和角色手的骨骼是绑定...

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

297. tiledMap问题,getTileProperties获取地图属性不能获取到 [ 61%]

...ID     *@param name 属性名称     *@return     */     __proto.getTileProperties=function(index,id,name){         if (this._tileProperties[index] && this._tileProperties[index][id]){             return this._tileProperties[index][id][name];       ...

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

298. Laya.stage报null [ 60%]

...eError: Cannot set property 'pivotX' of null 打开弹窗UI时报错 读取protobuf失败,root.lookup返回null TypeError: Cannot read property 'sv' of null laya.particle.j at Particle2D.__proto.customRender 问题状态 最新活动: 2020-02-02 18:41 浏览: 396 关注: 1 人

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

299. Node.prototype._activeHierarchy存在的bug或者说是onEnable和onAwake的坑 [ 60%]

Node.prototype._activeHierarchy存在的bug或者说是onEnable和onAwake的坑 官方源码如下: /**     *@private     */     __proto._activeHierarchy=function(activeChangeScripts){         this._setBit(/*laya.Const.ACTIVE_INHIERARCHY*/0x02,true);         if (this._...

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

300. closeHandler和onClosed是不是功能累赘了?都是指关闭后的处理 [ 60%]

...经过查看源码都是作用重复,望精简。保留onClosed 即可 __proto.doClose=function(dialog,type){ dialog.removeSelf(); dialog.isModal && this._checkMask(); dialog.closeHandler && dialog.closeHandler.runWith(type); dialog.onClosed(type); } 2018-09-14 添加评论 免费...

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