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

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

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. 请问在2.0版本的js中,如何获取mouse_move的鼠标坐标 [ 55%]

...ild(img); ........ onmousemove(e) { //console.log("e="+JSON.stringify(e)); for (var property in e) { console.log(property+"="+e[property]); } console.log("========================"); /**这里是运行后,在img上拖动给出的属性,没有鼠标的xy的坐标 * * _stoped=false game.js:116 nat...

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

463. 电脑上跟手机上运行不一样(手机上判断是进不去的,但我打印出来是满足条件的,必现) [ 55%]

... +' '+App.uid +' '+param.players[0].gold);                 for (var key in data.players) {                     if(data.players[key].uid ==App.uid)                     {                         this._ownerGold = data.play...

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

464. 发布项目“是否压缩混淆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

465. 批量销毁释放内存(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

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

467. 批量销毁释放内存(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

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

469. 发布微信后无法触发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

470. TiledMap加载报错 relativePath为空 [ 54%]

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