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

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

691. 加上size设置后,精灵不能点击. [ 68%]

...0.33 ? "img/flower2.png" : "img/flower3.jpg" img.loadImage(s); img.on(Laya.Event.CLICK, this, () => { img.y -= 10; }) img.pos(100, 300) Laya.stage.addChild(img) } function createFlower() { var f = new Laya.Sprite(); var r = Math.random(); var s = r > 0.66 ? "img/flower1.jpg" : r > 0.33 ? "i...

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

692. 2.1beta骨骼动画重复播放 必抖动 [ 68%]

...是我监听动画完成并且设置不要重复播放 this.mArmature.on(Event.STOPPED, this, this.playStanding); this.mArmature.play("standing",false);//设置为false 不重复播放动画播放完成后在播放一次,依次循环…… 这样就没有抖动了 附件 : --> 2019-05-21 添加评...

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

693. 请问在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

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

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

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

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

696. 调用动画结束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

697. 视频节点 · LayaAir3.4 · 引擎文档 · 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

698. 微信加载文件失败没有回调 [ 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

699. 移动端横竖屏适配(类似锁屏效果)? [ 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

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

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

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