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

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

81. 为啥 增加 Text ,drawcall 暴增 ?????????????? [ 83%]

...eItem.sizeGrid = '0,10,0,10'; var price = this.getFishVal('10001', 3); var length = String(price).length; var w = length * 16 + 15 + 40; fish.scoreItem.width = w; fish.scoreItem.x = fish.getBox().x - fish.scoreItem.width/2; fish.scoreItem.y = fish.getBox().y - fish.scoreItem.height; this.scoreBox.ad...

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

82. 龙骨动画的监听回调,有时能回调,有时不能回调 [ 83%]

...his.isFinish){ return null; } let armature = null; if(this.mArmatureUnUsed.length > 0){ armature = this.mArmatureUnUsed.pop(); } if(this.mFactory){ armature = this.mFactory.buildArmature(0); this.mArmatureUsed.push(armature); return armature; } }  public recycleArmature(armature:Laya.Skeleton){ ...

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

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

...美术资源地址数组) * 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

84. 设置transform.localRotation之后,就不能再使用transform.rotate了 [ 83%]

...3515613: -5.099999944384835e-1414: -3.03830003738403315: 1buffer: (...)byteLength: (...)byteOffset: (...)length: (...)Symbol(Symbol.toStringTag): (...)__proto__: TypedArray__proto__: Object bom.transform.localRotation=new Laya.Quaternion(0, 0,0,0);           //设置了localRotation Quaternion ...

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

85. 对象池 · LayaAir3.0文档 · LAYABOX [ 82%]

..."Bullet"); // 查看当前对象池内对象数量 console.log( bulletPool.length ); if( bulletPool.length == 0 ) { // 把子弹放入对象池 pool.push( new Bullet() ); } 2.2 清理一个对象池 /** * 清除对象池的对象。 * @param sign 对象类型标识字符。 */ static clearBySign(sig...

来源: Laya3.0_文档 发布时间: 20230303

86. 在浏览器上,模拟并重现SimpleSingletonList的问题了 [ 82%]

...。(这就有点恐怖)   注:已经是 for (var i = 0, n = this.length; i &lt; n; i++) 赋值了。   没时间去仔细改,现在用暴力方式改一下: if (index !== -1){     console.log("SimpleSingletonList:" + element + " has  in  SingletonList.");     this.clear(); } 把...

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

87. 请问如何获取触屏上两个或者更多位置的坐标 [ 82%]

...y&lt;any&gt; = e.touches;             if (touches &amp;&amp; touches.length == 2) {                 this.preRadian = Math.atan2(                     touches[0].stageY - touches[1].stageY,                     touches[0].stageX - touches[1].stageX);             ...

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

88. ???????? 为啥加一个 Text,drawcall 暴增? [ 82%]

...eItem.sizeGrid = '0,10,0,10'; var price = this.getFishVal('10001', 3); var length = String(price).length; var w = length * 16 + 15 + 40; fish.scoreItem.width = w; fish.scoreItem.x = fish.getBox().x - fish.scoreItem.width/2; fish.scoreItem.y = fish.getBox().y - fish.scoreItem.height; this.scoreBox.ad...

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

89. laya.d3.renderobjs.nativeobj.NativeInstanceRenderElementOBJ_API3.0 [ 82%]

...Context3D Returns void addUpdateBuffer addUpdateBuffer(vb: VertexBuffer3D, length: number): void Defined in laya/d3/RenderObjs/NativeOBJ/NativeInstanceRenderElementOBJ.ts:20 增加UpdateBuffer Parameters vb: VertexBuffer3D length: number 每个instance属性的数据长度 Returns void clear clear()...

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

90. 性能测试-骨骼 [ 81%]

...0; i = tAnimNum) { mActionIndex = 0; } for (var i = 0, n = mAnimationArray.length; i = []; private mFactory: Templet; constructor() { this.mSpacingX = Browser.width / this.colCount; this.mSpacingY = Browser.height / this.rowCount; Laya.init(Browser.width, Browser.height, WebGL); Stat.show(); this.mT...

来源: Laya_示例 发布时间: 20240930