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

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

11. 请问在2.0版本的js中,如何获取mouse_move的鼠标坐标 [ 80%]

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

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

12. 淘宝创意互动分包指南(TypeScript-小游戏适配文档-淘宝创意互动) [ 79%]

... { my.redirectTo({ url: "/subpackage1/page2/index", success: function () { console.log("success") }, fail: function (err) { console.log("2222", err) } }) } ``` 注意:在加载资源的时候,分包文件夹名称前也需要加“ / ” #### 2.2 资源分包 资源分包适合页面数量较多...

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

13. 动态阴影被切割了?为啥没有显示完成的阴影 [ 78%]

...{ var box = scene.addChild(new myCube(0.1, 0.1, 11.5, colorCalc(), 0, 1)); console.log(box); } function addTestBox() { var box = scene.addChild(new myCube(0.1, 0.1, 11.5, colorCalc(), 0, 1)); console.log(box); } function addFirstBox() { var box = scene.addChild(new myCube(1, 1, 0.5, colorCalc(), 0))...

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

14. 人物行走图动画 [ 78%]

...隔(单位:毫秒)  ani.index = 0;     // 当前播放索引  console.log(ani.index);  ani.play();       console.log(ani.index);  var bounds = ani.getGraphicBounds();  ani.pivot(bounds.width / 2, bounds.height / 2);    ani.pos(Laya.stage.width / 2, Laya.stage.height / 2);  con...

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

15. 龙骨动画demo [ 78%]

...ad("dragonBones/chicken/chicken.sk", Laya.Handler.create(this, (e) => { console.log(e); let num = skeleton.getAnimNum() let name = skeleton.getAniNameByIndex(num - 1); skeleton.play(name) }));  this.owner.addChild(skeleton); 2019-04-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...

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

16. 截屏文件没有保存 [ 77%]

...程是:https://ldc.layabox.com/doc/?nav=zh-js-7-2-7 if( window.conch ) { console.log("i'm here 1"); window.conch.captureScreen(function(arrayBuff,width,height){ conch.saveAsPng(arrayBuff,width,height,conch.getCachePath()+"/test.png" ); console.log("i'm here 2:" + arrayBuff.byteLength + " " + width +...

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

17. EventDispatcher接收不到参数 [ 77%]

...r(); //发送事件 Dispatcher.Emit = function(InName,agv){ //派发事件 console.log("agv-->"+agv); Dispatcher.eventDispatcher.event(InName,agv); } //侦听事件 Dispatcher.AddNotice = function(InName,caller,listener,arg){ //监听事件 Dispatcher.eventDispatcher.on(InName,caller,listener,(ar...

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

18. 循环监听按钮,如何进行传参和接受参数 [ 77%]

...ypeBox.getChildByName('btn' + i) as Laya.Image;               console.log(e); e.on(Laya.Event.CLICK, this, this.onBtnClick); }   按钮事件 private onBtnClick(event:Laya.Event): void {         let b = event.currentTarget as Laya.Image; console.log('onClickLevel > ' + b.ski...

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

19. 在add panel 后设置 hScrollBar.value 没有用 [ 77%]

...Nevermore 赞同来自: Laya.stage.addChild(this);             console.log("addd 33");                         this.alpha = 0;             Laya.Tween.to(this,{alpha:1},200);             self.panel_room.hScrollBar.value = 432; console.log("s...

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

20. 给图片节点添加新创建的图片,会报这个错:node._setParent is not a function [ 74%]

...nt is not a function this.imageBg = this.owner.getChildByName("image_bg"); console.log("this.imageBg==="+this.imageBg); for (let iColumns = 1; iColumns < this.intColumns; iColumns++) { this.arrLove[iColumns] = []; for (let iRows = 1; iRows < this.intRows; iRows++) { let iNum = Math.round(Math....

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