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

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

151. onCollisionEnter检测不到碰撞 [ 65%]

...找到 代码: public onCollisionEnter(collision:Laya.Collision):void { console.log("碰撞"); if (collision.other.owner === this.sphere){ ((this.owner as Laya.MeshSprite3D).meshRenderer.sharedMaterial as Laya.BlinnPhongMaterial).albedoColor = new Laya.Vector4(0.0, 0.0, 0.0, 1.0); } } 附件 : -->...

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

152. localRotationEulerY旋转位置错误 [ 65%]

...rigidBody.mass = 10;         this.arr.push(box);         console.log("position = ",box.transform.position);         if (index == 1) {             Laya.timer.once(1000,this,()=>{                 this.setAngle();             })...

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

153. 请问HtmlDivElement控件在innerHTML中有<div>标签的情况下获取实际宽高为0的问题? [ 65%]

...3'&gt;HTML文本&lt;/span&gt;"; html += "&lt;/div&gt;" p.innerHTML = html; console.log(p.contextWidth); //0 p.frameOnce(2,this,function(){ console.log(p.contextWidth); //0 }) } function showExternalHTML() { var p = new HTMLIframeElement(); Laya.stage.addChild(p); p.href = "../../res/html/test.html";...

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

154. Cannot read property 'rayCast' of undefined [ 64%]

...s.scene.cannonPhysicsSimulation.rayCast(this.ray,out); if(out.succeeded) { console.log(111); } } } 附件 : --> web.rar 2020-09-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 程程 赞同来自: 问题解决...

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

155. 自定义组件时,设置组件子节点的image的skin时,路径为layaIde的路径而非项目路径 [ 64%]

... super.changeValue(); _proMask.scaleX = _value / _max; _proMask.repaint(); console.log("改变值: " + _proMask.scaleX); } /** *@inheritDoc */ override public function destroy(destroyChild:Boolean = true):void { super.destroy(destroyChild); _proMask &amp;&amp; _proMask.destroy(_proMask); _progress &...

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

156. Laya2.0,使用WebGL渲染,获取canvas使用微信方式保存图片,显示黑色? [ 64%]

... 200, height: 150, destWidth: 400, destHeight: 300, success: (res) =&gt; { console.log(res) wx.saveImageToPhotosAlbum({ filePath: res.tempFilePath, success(res) { //保存成功 wx.showToast({ title: '保存成功' }); } }) } }) 这是保存代码,获取canvas使用的事 Laya.Render.canvas 如果...

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

157. 用laya2.0CacheAs设为normal部分图片显示不出来,设为none又会显示出来 [ 64%]

...有完全展示数组数据,只展示了其中的图片部分,数组能console出,那个list中的数据也存在,但没渲染出。 问题状态 最新活动: 2018-10-07 18:08 浏览: 752 关注: 2 人

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

158. 3D场景UNITY导出相机,怎么获取并使用 [ 64%]

...ane":0.3, "farPlane":90 }, var camera= scene.getChildByName("AutoCamera"); console.log(camera); 2017-09-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 zyf598125795 赞同来自: camera打印显示NULL 2017-09-2...

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

159. 数组排序报错 [ 64%]

...有完全展示数组数据,只展示了其中的图片部分,数组能console出,那个list中的数据也存在,但没渲染出。 IDE通过.ui自动生成的ui代码报错 2.2.0beta4,微信上动态合批报错. 问题状态 最新活动: 2017-04-19 11:47 浏览: 1648 关注: 3 人

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

160. 加材质后报错 [ 64%]

...ndex.html:1 WebGL: too many errors, no more errors will be reported to the console for this context. 2017-09-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 183*****755 赞同来自: 请附上简单示例和资...

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