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

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

1051. 不带格式后缀的图片无法成功加载 [ 65%]

...2e8f7b302fa8d139de4c' Laya.loader.load(url, Laya.Handler.create(this, () => { let picTemp = Laya.Loader.getRes(url); console.log(picTemp.width) // undefined let nodee = new Laya.Sprite() nodee.texture = picTemp nodee.width = 500 nodee.height = 250 nodee.x = 100 nodee.y = 350 Laya.stage.addChild(n...

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

1052. 1.7.18beta少方法? [ 65%]

...9的image此函数耗时1.2毫秒 if (Render.isConchWebGL) { (xoffset - 1 >= 0) && (gl.texSubImage2DEx(true, WebGLContext.TEXTURE_2D, 0, xoffset - 1, yoffset, WebGLContext.RGBA, WebGLContext.UNSIGNED_BYTE, bitmap)); (xoffset + 1 <= _w) && (gl.texSubImage2DEx(true, WebGLContext....

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

1053. Invalid character: '`' Stack:[native code]异常 [ 65%]

...                     var split=this._url.indexOf("/")>=0 ? "/" :"\\";                         var idx=this._url.lastIndexOf(split);                         var folderPath=idx >=0 ? this._url.substr(0,idx+1):"";        ...

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

1054. Laya3D鼠标检测,3d对象被添加到场景,然后又被移除,还能通过Ray进行碰撞检测么? [ 65%]

...通过Ray进行碰撞检测么? var outHitAllInfo:Vector.<RaycastHit> = new Vector.<RaycastHit>(); point.elements[0] = MouseManager.instance.mouseX; point.elements[1] = MouseManager.instance.mouseY; ray.direction.x = 0; ray.direction.y = 0; ray.direction.z = 0; ray.origin.x = 0; ray.or...

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

1055. laya.components.AnimatorTransition2D_API3.0 [ 65%]

... check(normalizeTime: number, paramsMap: Record<string, Animation2DParm>, isReplay: boolean): boolean Defined in laya/components/AnimatorTransition2D.ts:52 是否启用过渡 Parameters normalizeTime: number paramsMap: Record<string, Animation2DParm> isReplay: boolean Returns boolean rem...

来源: Laya3.0_api 发布时间: 20231115

1056. 新人求教!!! [ 65%]

...作用了,switchImg()只执行了一次,不能实现切换图片   -->  } } new Main(); 2018-02-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: 你再设置一下size 试试,没...

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

1057. LayaAirIDE 2.0 laya.wxmini.js 第3行报错! 创建3D项目(TypeScript),导出微信小游戏,选择了JS混淆,崩溃在 laya.wxmini.js 第3行,错误如下 [ 65%]

...ptErrorCannot assign to read only property 'window' of object '#<Window>' TypeError: Cannot assign to read only property 'window' of object '#<Window>'     athttp://127.0.0.1:34658/game/libs/laya.wxmini.js:3:8     毫无规律,有时创建一个3D空项目一个字不改,不会...

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

1058. 分享,扩展Laya.Text组件实现简单的富文本 [ 65%]

...rrBitmapFont.getMaxHeight(); }; var startY = padding[0]; if (this._height > 0) { var tempVAlign = (this._textHeight > this._height) ? "top" : this.valign; if (tempVAlign === "middle") startY = (this._height - visibleLineCount * lineHeight) * 0.5 + padding[0] - padding[2]; else if (tempVAlign =...

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

1059. Laya2.2.0打包oppo没有生成dist文件夹 [ 65%]

...我的方法提供一下日志: 2.1) 打开发布面板 2.2) 【菜单】->【帮助】->【开发人员工具】 输入命令: ``` codeMain.publishProWin3.openDevTools() ``` 2.3) 发布 2.4) 发布结束后将日志拷贝到txt文件中,将日志传上来,我看一下你那里的发布日...

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

1060. laya 2.1.1.1 object has in SimpleSingletonList [ 65%]

...pa 赞同来自: 2.6.0版本也有这个BUG,修复如下: laya.d3.js -> SimpleSingletonList.Clear -> for (var i = 0, n = this.length; i < n; i++) 引擎代码 i没有赋初值,导致 i<n永远为false. 2020-03-21 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折...

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