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

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

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

...在2.0版本的js中,如何获取mouse_move的鼠标坐标 img.on(Laya.Event.MOUSE_MOVE,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("==================...

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

692. 关于timer的问题 [ 68%]

...白部分的颜色问题 求指点3d射线碰撞和UI点击穿透的问题 event自定义事件的问题 mask在layaplayer中有问题 问题状态 最新活动: 2018-06-09 01:21 浏览: 880 关注: 3 人 王 坤 • 2018-06-09 01:43 已经解决,是作用域的问题,将this替换成Laya.stage...

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

693. laya.d3.core.Sprite3D_API3.0 [ 68%]

...ve addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer clone contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents hasHideFlag hasListener isAncestorOf off offAll offAllCaller on on...

来源: Laya3.0_api 发布时间: 20231115

694. 调用动画结束on方法,报错this.zombieAnimator.on is not a function [ 68%]

... as Laya.Animator;//获取Animator动画组件 this.zombieAnimator.on(Laya.Event.COMPLETE, this, this.onAniComplete); this.loadUI(); })); 附件 : --> Test.rar 2019-05-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个...

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

695. 视频节点 · LayaAir3.3 · 引擎文档 · LAYABOX [ 68%]

...行一次 onAwake(): void { // 鼠标点击触发播放 Laya.stage.on(Laya.Event.MOUSE_DOWN, () => { Laya.loader.load("resources/layaAir.mp4").then(() => { this.video.play(); //播放视频 }); }) } } 如果是在LayaAir IDE中运行,则VideoNode无需通过事件触发播放。但是在Chro...

来源: Laya3.0_文档 发布时间: 20251010

696. 微信加载文件失败没有回调 [ 68%]

...e.log("LoadError")} LoadOK(){console.log("LoadOK")}   Laya.loader.on(Laya.Event.ERROR,this,this.LoadError) Laya.loader.load("不存在的图片URL",Laya.Handler(this,this.LoadOK));     发布成微信小游戏版本在真机微信上运行,发现这2个回调都没执行。   2018-09-20 添加...

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

697. 移动端横竖屏适配(类似锁屏效果)? [ 68%]

...链接 提交 1 个回复 cuixueying 赞同来自: package { import laya.events.Event; import laya.utils.Browser; public class ShiPei { private var fillWidth:Number=Browser.width; private var fillHeight:Number=Browser.height; public function ShiPei() { //设置初始化 Laya.init(fillWidth,fillHeigh...

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

698. 关于官方技术文档中《微信飞机大战》实战开发中监听界面是否关闭 [ 68%]

...战开发中监听界面是否关闭 //监听界面是否关闭 this.once(Event.CLOSE,this,onClose); /** * 界面关闭 */ private function onClose():void { console.log("GameStart界面关闭!"); //从舞台移除自己 this.removeSelf(); //只加载一次,因此直接消毁自己 this.destroy()...

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

699. Cannot read property 'rayCast' of undefined [ 68%]

...sky.lh", Laya.Handler.create(this, this.onLoadFinish)); Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.mouseDown); } onLoadFinish(layaMonkey){ this.layaMonkey=this.scene.addChild(layaMonkey); // Laya.timer.frameLoop(1, this, this.onFrameLoop); } onFrameLoop(){ this.layaMonkey.transform.rotate(this....

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

700. 如何获取list下单元格的坐标点? [ 68%]

... list.mouseHandler=new Handler(this,onClick); } private function onClick(e:Event,index:int):void { if(e.type==Event.CLICK) { trace("xy:"+list.getCell(index).x,list.getCell(index).y); } }上面的坐标是相对于list本身的,如果你想取得全局坐标可以通过localToGlobal方法来得到...

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