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

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

61. 3d获取组件代码bug [ 85%]

...){ var index=this._componentsMap.indexOf(type); if (index===-1) components.length=0; //这里应该返回了!!!!!!!!!! var typeComponents=this._typeComponentsIndices[index]; var count=typeComponents.length; components.length=count; for (var i=0;i < count;i++) components[i]=this._components[typeCo...

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

62. Laya.loader.load(xx) 当地址""的时候,会报错。 [ 85%]

...                 for (var i = 0, len = toloadPics.length; i < len; i++) {                                 if (changeType) {                                     toloadPics = folderPath + toloadPi...

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

63. Node.prototype._activeHierarchy存在的bug或者说是onEnable和onAwake的坑 [ 84%]

...this._components){             for (var i=0,n=this._components.length;i < n;i++){                 var comp=this._components[i];                 comp._setActive(true);                 (comp._isScript())&& (activeChangeScripts.push...

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

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

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

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

65. 十几秒以后动画渲染时间变长,帧率变慢,是怎么回事? [ 84%]

...间距 */ private _path_space_y: number; /** 路径长度 */ private _path_length: number; // toset: /** 路径的长度范围 */ private _path_min: number = 100; private _path_max: number = 200; /** 路径角度 */ private _path_angle: number; /** 路径弧度 */ private _path_radians: number;  /*...

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

66. ???????? 为啥加一个 Text,drawcall 暴增? [ 84%]

...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

67. CommandBuffer_Outline 每次 addCommandBuffer都会永久增加10Gpu,removed掉相机事件也不会减少 [ 84%]

...als:Laya.Material[]):Laya.CommandBuffer{          if(this.renders.length == 0 || this.materials.length == 0 ) return;                  var buf:Laya.CommandBuffer = new Laya.CommandBuffer();         //当需要在流程中拿摄像机渲染效果的时候...

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

68. ☆☆☆☆☆☆☆☆☆☆☆每增加一个 view 都会增加一个 drawcall 吗 ☆☆☆☆☆☆☆☆☆☆☆ [ 84%]

...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_社区 发布时间: 20180516

69. 为啥 增加 Text ,drawcall 暴增 ?????????????? [ 84%]

...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

70. 在安卓手机上drawToTexture不能正确返回纹理对象,是HTMLCanvas [ 84%]

...et u8 = tex.getData(0, 0, tex.width, tex.height) let u = new Uint8Array(u8.length) let len = u8.length / 4 let i = 0 for (let x = len; x >= 0; x--) { for (let y = 0; y < 4; y++) { u[i * 4 + y] = u8[x * 4 + y] } i++ } u8 = u u = new Uint8Array(u8.length) len = u8.length / s.height let l2 = len ...

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