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

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

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

...ivate cameraEventFlag: Laya.CameraEventFlags = Laya.CameraEventFlags.BeforeImageEffect;     private camera: Laya.Camera;      private renders:Laya.BaseRender[]  = [];     private materials:Laya.Material[] = [];      public static instance: CommandBuffer_Outline ; ...

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

462. 发布项目“是否压缩混淆js(耗时)”的bug [ 55%]

...ode.js > code.min.js Parse error at code.js:107395,26             for(var cType of arr)                           ^ ERROR: Unexpected token name «of», expected punc «;»     at JS_Parse_Error.get (eval at <anonymous> (C:\Users\fp005\AppData\Roaming\n pm\node_modules\...

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

463. List列表使用出现的问题 [ 55%]

...怎么赋值,我这样写赋值不好使, b456410 • 2018-04-10 13:26 for (var i = 0; i < 10; i++) { data1.push({ m_label: "112" }); } this.m_list.array = data1;

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

464. 批量销毁释放内存(ActionScript-3D基础(AS3)-LayaAir3D的内存管理) [ 55%]

...ra:Camera = scene.addChild(new Camera(0, 0.1, 100)) as Camera; camera.transform.translate(new Vector3(0, 1, 0)); camera.addComponent(CameraMoveScript); })); } ``` 我们点击加载场景,再来看状态。 ![](img/2.png)(图2) 在场景显示出来后,我们可以看到在 **Stat** 面板中 **...

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

465. 批量销毁释放内存(TypeScript-3D基础(TS)-LayaAir3D的内存管理) [ 55%]

...= scene.addChild(new Laya.Camera(0, 0.1, 100)) as Laya.Camera; camera.transform.translate(new Laya.Vector3(0, 1, 0)); camera.addComponent(CameraMoveScript); })); } ``` 我们点击加载场景,再来看状态。 ![](img/2.png)(图2) 在场景显示出来后,我们可以看到在 **Stat** 面板...

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

466. 【Native BUG】Native下对根结点设置filter,无法更新到每个子节点,web是ok的 [ 54%]

... public static setGray(node: Laya.Node, set: boolean) {             for (var i = 0; i < node.numChildren; i++) {                 let sprite = node.getChildAt(i) as Laya.Sprite;                 if (sprite) {                     //if (sprite instanceof Laya.Text) { ...

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

467. 发布微信后无法触发mouse_up事件 [ 54%]

...ts.Event):void { var touches: Array<any> = e.touches; if (touches) { for(let i=0;i<touches.length;i++){ let t =touches[i]; let nameIndex =e.touchId + "_" + i; console.log(nameIndex+":"+e.type); } } } 之能收到down和move! 2018-11-02 添加评论 免费帖 --> 分享 微博 QZONE 微...

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

468. TiledMap加载报错 relativePath为空 [ 53%]

...而laya.tiledmap.js的源码中是这样的 var tArray=tJsonData.tilesets; for (i=0;i < tArray.length;i++){ tileset=tArray[i]; tTileSet=new TileSet(); tTileSet.init(tileset); if (tTileSet.properties && tTileSet.properties.ignore)continue ; this._tileProperties[i]=tTileSet.tileproperties; ...

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

469. laya 2.1.1.1 object has in SimpleSingletonList [ 53%]

...个BUG,修复如下: laya.d3.js -> SimpleSingletonList.Clear -> for (var i = 0, n = this.length; i < n; i++) 引擎代码 i没有赋初值,导致 i<n永远为false. 2020-03-21 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起...

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

470. 自定义shader-地形shader [ 53%]

...); var camera = scene.addChild(new Laya.Camera(0, 0.1, 1000)); camera.transform.rotate(new Laya.Vector3(-38, 180, 0), false, false); camera.transform.translate(new Laya.Vector3(-5, 20, -30), false); camera.addComponent(CameraMoveScript); scene.once(Laya.Event.HIERARCHY_LOADED, this, function () { se...

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