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

大约有 1,562 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0062 秒)

1411. HTMLIframeElement报错 [ 49%]

...错 我用 var p:HTMLIframeElement = new HTMLIframeElement(); Laya.stage.addChild(p); p.href = "test.html"; p.y = 200; 一执行就报错是为什么啊?错误如下: Utils.parseXMLFromString=function(value){ var rst; value=value.replace(/>\s+</g,'><'); rst=(new DOMParser()).parseFro...

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

1412. 使用 loader.create 预加载模型后。必须要在回调 Laya.Event.HIERARCHY_LOADED 中获取子元素吗?预加载是预加载的什么部分? [ 49%]

...资源添加进scene中还需要回调吗? 例如: var effect3D=scene.addChild(Laya.loader.getRes("LayaScene_effect/effect.lh")); effect3D.once( Event.LOADED , this,function(sprite){ var child=effect3D.getChildAt(0); } ); sfsmmc • 2017-08-21 15:53 我试过,在loader.create预加...

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

1413. 创建动画时画布的width和height与 实例化后的ani.size(width, height) 有什么区别 [ 49%]

... this.aniBirdSing.height); this.aniBirdSing.mouseEnable = true; Laya.stage.addChild(this.aniBirdSing); } 根据这个代码,我认为鼠标点击区域在图片左下区域,但结果是图片左上区域,求解? 如果我想让图片的点击区域是图片左下区域,应该如何出来...

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

1414. QQ玩一玩 获取头像后的数据是 BK.Buffer,需要如何用laya的Image显示出来? [ 49%]

...idth,height); var sp =new BK.Sprite(200,200,tex,0,1,1,1); BK.Director.root.addChild(sp); }else if(openID == openID2){ ... } } BK.MQQ.Account.getHead(openID1, callback); BK.MQQ.Account.getHead(openID2, callback);  =============================================================== [b]问题已解决,...

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

1415. 事件绑定不触发bug [ 49%]

...down", this, callback);                           Laya.stage.addChild(sp);                                        console.log(" laya test");                      };                  laya_test();   如上代码,加上sp.pos(500, 400);这句...

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

1416. 【求助】关于Cannot read property 'visible' of undefined问题 [ 49%]

... private function showFoods():void{ foodSprite = new Sprite(); Laya.stage.addChild(foodSprite); this.index = 0; foodsList = new Array(); foodsList.push(new Food("菜品1", "1", 0)); foodsList.push(new Food("菜品2", "2", 1)); foodsList.push(new Food("菜品3", "3", 2)); foodsList.push(new Food("菜...

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

1417. laya微信打包问题很多呀,就是加了一些绘图api,就报错 [ 49%]

...ng(); } private drawSomething(): void { this.sp = new Sprite(); Laya.stage.addChild(this.sp); //画线 this.sp.graphics.drawLine(10, 58, 146, 58, "#ff0000", 3); //画连续直线 this.sp.graphics.drawLines(176, 58, [0, 0, 39, -50, 78, 0, 117, 50, 156, 0], "#ff0000", 5); //画曲线 this.sp.graphics....

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

1418. Laya.Browser获取宽高数值会变化,iphone6第一次加载正确,刷新几次就变大了。 [ 49%]

...is.row + ',' + this.col;         txt.pos(0, 0);         Laya.stage.addChild(txt);     } } 代码很简单,什么都没有jsh就是获取宽高。只测试了Android、iPhone6两个手机,iPhone6就出了两个问题。 1、竖屏时刷新几次,宽高就变大了,bia变到2千多3...

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

1419. 请问LayaAirUnityPlugin 1.1.0.unitypackage导出的.lsani文件怎么使用? [ 49%]

... mesh = Sprite3D.load('resources/shuipao.lh');             this.addChild(mesh);             mesh.on(Event.HIERARCHY_LOADED, this, this.OnHierarchyLoaded);                          let ani_names = this.ani_names;             let anies = this.anie...

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

1420. [LayaAir2] 在使用videoDom创建视频元素后iPad跟iPhone中位置不一样 [ 49%]

...ge.height = videoTexture.video.videoHeight; image.pos(100,100); Laya.stage.addChild(image); //目前LayaAir2.0引擎暂时没有提供刷新纹理机制,需要手动刷新。或者你可以试用LayaAir3.0引擎,那边实现videoTexture不用自己手动刷新 Laya.timer.frameLoop(1, this, this....

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