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

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

171. Laya内嵌iframe预览时不显示网页,编辑器和开发者工具上没问题 [ 61%]

...Browser.document.createElement("iframe");         this.iframe.style.position ="absolute";//设置布局定位。这个不能少。         this.iframe.style.zIndex = 1000;//设置层级         this.iframe.style.left ="100px";         this.iframe.style.top ="100px";   ...

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

172. Laya下怎么实现复制 [ 60%]

...+"/99" var iframe = Browser.document.createElement("iframe"); iframe.style.position ="absolute";//设置布局定位。这个不能少。 iframe.style.zIndex = 100;//设置层级 iframe.style.left =pt.x+"px"; iframe.style.top =pt.y+"px"; iframe.src = "target-div.html"; Browser.document.getElementByI...

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

173. 某些机型drawToCanv绘图颜色变深 [ 60%]

...ddle"); _webframe.setAttribute('scrolling', "no"); _webframe.setAttribute('position', "absolute"); _webframe.setAttribute('style', "z-index:100001;position: absolute; left: 0px; top: 0px; background: rgb(0, 0, 0);"); Browser.document.body.appendChild(_webframe); 下面图片左边是正产机型截...

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

174. 关于3d的碰撞检测 [ 60%]

...角色位置计算射线原点 Laya.Vector3.add(this.ownerSprite.transform.position, new Laya.Vector3(speedX, 1, speedZ), rayOrigin); //射线原点位置更新 this.ray.origin = rayOrigin; //物理射线与碰撞器相交检测 Laya.Physics.rayCast(this.ray, this.outHitInfo, 0); console.log("x:" + ...

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

175. HTMLIframeElement报错 [ 60%]

...都有效,就是滚动条无效,咋办呢? .content{         position: absolute;         margin:5px;         width: 300px;     height: 200px;     overflow:auto;     font-size:20px;     line-height:38px;     font-family:"微软雅黑";     color:#000;     tex...

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

176. 要让2DUI跟随3D物件,比如说敌人头上有血条。请问要怎么做? [ 60%]

...: let out = window.app.fcUtil.worldToViewportPoint(this.owner.transform.position, window.GameMag.Camera1); this.hpNode.x = out.x - this.hpNode.width / 2 this.hpNode.y = out.y + this.hpNode.height *3.5 //this.owner.transform 3d的物体 //this.hpNode 2d的ui   //3d坐标转2d屏幕坐...

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

177. 使用matter创建了Circle Body,修改body坐标后碰撞区域不改变 [ 60%]

...CollisionEnd 里面进行了 body的坐标设置:      Matter.Body.setPosition(B2,newPosition); 5、导致的结果是:在界面上可以看到B2已经更改到新的坐标位置了,但是当B1穿过B2的时候,却没有碰撞发生,而当B1穿过别的没有显示B2的地方的时候...

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

178. SoundManager的兼容性问题 [ 59%]

... execute 'setTargetAtTime' on 'AudioParam': Time constant must be a finite positive number: 0","channel":"error","stack":{"hash":"7d3c8a0d876bf167157fe044b73f4d88","error":"Error\n    at Function.i.error \n    at e.playSound\n    at e.onRandBtnDown\n    at e.runWith\n    at i.event \n   ...

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

179. [LayaAir2] 在使用videoDom创建视频元素后iPad跟iPhone中位置不一样 [ 59%]

...本:1.7.16) sprite3d怎样使用Laya.Tween.to来做缓动呢?比如position或者scale layabox真的只能做棋牌吗?和flash比谁更强?本视频给你答疑解惑! LayaAirIDE下如何使用mask? 使用3D时候,Property 'getComponentByType' does not exist on type 'Node'. 微信...

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

180. 分享:IDE使用SWF动画的销毁与反复创建 [ 59%]

...无智能提示 sprite3d怎样使用Laya.Tween.to来做缓动呢?比如position或者scale 分享:自定义事件派发与侦听(A页面派发 B页面侦听) 分享:适配LayaAir版本的PureMVC框架 分享:打地鼠 AS、JS、TS版本 Demo! LayaAirIDE下如何使用mask? 使用3D...

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