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

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

41. 2D物理-仿生机器人 [ 88%]

... dampingRatio; leg1.addComponentIntance(distanceJoint1); distanceJoint1.maxLength = distanceJoint1.minLength = distanceJoint1.length || distanceJoint1.joint.GetLength() * Laya.Physics.PIXEL_RATIO; let distanceJoint2 = new Laya.DistanceJoint(); distanceJoint2.otherBody = legBody2; distanceJoint2.self...

来源: Laya2.0_示例 发布时间: 20240930

42. [0]Timer的偶发性Bug [ 88%]

...我的timer   clearAll(target: any = null) { if (!target) { this.timers.length = 0; return; } var length = this.timers.length; for (var i = 0; i < length; i++) { var t: TimerLite = this.timers[i]; if (t.target == target) { t.destory(); } } } 2023-11-15 0 0 分享 微博 QZONE 微信 为什么被...

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

43. 3D中摄像机绕物体旋转该如何实现? [ 88%]

...I._event.touches == null) { return 0; } else { return this.myevent.touches.length; } } public get Touchs(): Array<any> { return this.myevent.touches } public get GetAxisX(): number { return Laya.stage.mouseX - this.lastMouseX; } public get GetAxisY(): number { return Laya.stage.mouseY - this.l...

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

44. 官方案例里摄像机绕物体旋转脚本的问题 [ 87%]

...I._event.touches == null) { return 0; } else { return this.myevent.touches.length; } } public get Touchs(): Array<any> { return this.myevent.touches } public get GetAxisX(): number { return Laya.stage.mouseX - this.lastMouseX; } public get GetAxisY(): number { return Laya.stage.mouseY - this.l...

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

45. 【解决】富文本html下划线换行bug [ 87%]

...is.style; var words=this._getWords(); var i=0,len=0; if (words){ len=words.length; var a; if (cssStyle){ var font=cssStyle.font; var color=cssStyle.color; if (cssStyle.stroke){ var stroke=cssStyle.stroke; stroke=parseInt(stroke); var strokeColor=cssStyle.strokeColor; graphic.fillBorderWords(words,gX...

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

46. TypeError: Cannot read property 'length' of null [ 87%]

TypeError: Cannot read property 'length' of null layaide2.4.0a场景包含预制体hero.prefab,b场景也包含预制体hero.prefab 在a场景通过Laya.Pool.getItemByCreateFun("hero", this.pHero.create, this.pHero)创建对象,同时给对象设置位置,成功 跳转到b场景后,通过Laya.Poo...

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

47. 图集动画(TypeScript-LayaAir基础篇(TS)-动画基础) [ 87%]

...美术资源地址数组) * aniName 动作的名称,用于生成url * length 动画最后一帧的索引值, */ private aniUrls(aniName:string,length:number):any{ var urls:any = []; for(var i:number = 0;i<length;i++){ //动画资源路径要和动画图集打包前的资源命名对应起来 u...

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

48. 全局动画不能加载 [ 87%]

...bel(start):start; this.loop=loop; if (this._frames &amp;&amp; this._frames.length &gt; 1 &amp;&amp; this.interval &gt; 0){ this.timerLoop(this.interval,this,this._frameLoop,null,true); } } __proto._setFramesFromCache=function(name){ if (name &amp;&amp; Animation.framesMap[name]){ this._frames=Animat...

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

49. 【Laya2.1BUG】 给view设置runtime后,类型是any [ 87%]

...on(packages,packageDic,preCode){ var tPackage; var i=0,len=0; len=packages.length; var packageCodes; packageCodes=; for(i=0;i&lt;len;i++){ CodeManager.createTsSamePackageOne(packageCodes,packageDic[packages[i]]); } packageCodes.splice(0,0,preCode); return packageCodes.join("\n"); } CodeManager.creat...

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

50. 源码List的一次代码错误 [ 87%]

...; box = cacheBox; } else { [b] var arr = []; [/b] for (var i = this._cells.length - 1; i &gt; -1; i--) { var item = this._cells[i]; item.removeSelf(); arr.push(item); } this._cells.length = 0; } for (var k = startY; k &lt; numY; k++) { for (var l = 0; l &lt; numX; l++) { [b][i] if (arr &amp;&amp; ar...

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