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

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

1. UI布局计算bug [ 100%]

...放置两个box,分别取名m_Child_1跟m_Child_2,其中m_Child_1设置width720,height1280,m_Child_2设置布局参数:left、right、top、bottom均0,目的是初始化后m_Child_2的宽高720*1280。 接下来是bug描述:布局属性在初始化时,使用父控件...

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

2. HTMLDIVElement设置innerHTML时报错 [ 94%]

...设置innerHTML时报错 如图所示。测试代码Laya.init(Laya.Browser.width, Laya.Browser.height); var html = new Laya.HTMLDivElement(); html.style.fontSize = 30; html.style.whiteSpace = "nowrap"; html.innerHTML = '<span style="color:#ffffff">test</span>'; html.pos(500, 300); html.s...

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

3. 跳转场景后laya.core.js就报Cannot read property 'width' of null的错误 [ 90%]

跳转场景后laya.core.js就报Cannot read property 'width' of null的错误 偶发性bug。 Uncaught (in promise) TypeError: Cannot read property 'width' of null     at Function.Texture._create (laya.core.js:15946)     at Texture.__proto._onLoaded (laya.core.js:15750)     at EventHandler._...

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

4. Error: 代码包大小 5533 kb,上限 4096 kb,请删除文件后重试? [ 90%]

...就没有功能。 class Main { constructor() { console.log(Laya.Browser.width, Laya.Browser.height); this.current = { x: 0, y: Laya.Browser.height }; // Laya.stage.bgColor = "#3F51B5"; this.sp = new Laya.Sprite(); Laya.stage.addChild(this.sp); } render() { console.log("render"); var l = [ 0, 0, 0, ...

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

5. Text.as中parseLines方法里的问题 [ 89%]

...到有错误日志: TypeError: undefined is not an object (evaluating 's.width') at line 3 in https://usr/game.js _parseLines@https://usr/game.js:3:256231 typeset@https://usr/game.js:3:255040 typeset@https://usr/game.js:48:211550 …………   查了下源码, 定位到Text.as中parseLines()...

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

6. laya.device.media.HtmlVideo_API3.0 [ 88%]

... Accessors cpuMemory destroyed gpuMemory height id obsolute referenceCount width cpuMemory gpuMemory Methods _addReference _clearReference _removeReference _setCPUMemory _setCreateURL _setGPUMemory destroy event getVideo hasListener isCreateFromURL off offAll offAllCaller on once setSource create de...

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

7. Laya中Button等组件lose skin的问题 [ 88%]

...n);             return;         };         var width=img.sourceWidth;         var height=img.sourceHeight / this._stateNum;         img.$_GID || (img.$_GID=Utils.getGID());         var key=img.$_GID+"-"+this._stateNum;         var clips=Wea...

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

8. laya.d3.resource.MulSampleRenderTexture_API3.0 [ 87%]

...ipmapLevel mipmap mipmapCount multiSamples obsolute referenceCount samples width wrapModeU wrapModeV wrapModeW bindCanvasRender cpuMemory currentActive gpuMemory Methods _addReference _clearReference _createRenderTarget _end _getSource _removeReference _setCPUMemory _setCreateURL _setGPUMemory _star...

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

9. 我打印laya.stage时看到有个_width 但是我打印laya.stage._width 得到值和之前看到的不一样 [ 87%]

我打印laya.stage时看到有个_width 但是我打印laya.stage._width 得到值和之前看到的不一样 2018-06-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: 有例子或者dem...

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

10. laya.d3.resource.RenderTexture_API3.0 [ 87%]

...ipmapLevel mipmap mipmapCount multiSamples obsolute referenceCount samples width wrapModeU wrapModeV wrapModeW bindCanvasRender cpuMemory currentActive gpuMemory Methods _addReference _clearReference _createRenderTarget _end _getSource _removeReference _setCPUMemory _setCreateURL _setGPUMemory _star...

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