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

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

191. 获取鼠标当前状态 [ 68%]

...: 与内容相关的链接 提交 1 个回复 leisure 赞同来自: Laya.Event.MOUSE_OUT 完全解决这个问题啊 2018-02-17 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 laya2902 相关问题 请问有没有方法能够获取“鼠...

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

192. 事件函数作用域问题 [ 68%]

事件函数作用域问题 1. this.btn_Login.on(Laya.Event.CLICK, null, ()=>{ if (this.loginDig) { this.loginDig.removeSelf(); this.loginDig.destroy(); } 2.this.btn_ok.on(Laya.Event.RIGHT_CLICK, this, this.OnBut_Open); OnBut_Open() : void { this.removeSelf(); this.destroy(); } 就是这两个...

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

193. laya.components.AnimatorState2D_API3.0 [ 68%]

...2D Class AnimatorState2D Animator 类用于创建动画组件。 Hierarchy EventDispatcher AnimatorState2D Implements IClone Index Properties clipEnd clipStart cycleOffset loop name speed yoyo Accessors clip Methods addScript clone cloneTo destroy event getScript getScripts hasListener off offAll of...

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

194. Native IOS下获取陀螺仪数据为0 [ 68%]

...意坐标系。 //设置陀螺仪的处理 Laya.Gyroscope.instance.on(Laya.Event.CHANGE, this, this.onOrientationChange);   private onOrientationChange(absolute:Boolean, info: Laya.RotationInfo):void         {             if (info.alpha === null)             {     ...

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

195. 关于动画完成时Complete事件 [ 68%]

...在Unity设置动画loop为false,在laya播放动画都不会触发Laya.Event.COMPLETE ? 2018-05-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 4 个回复 Laya_Aaron 赞同来自: 请提供一个可以复现问题的d...

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

196. Chrome和layaAir调试,大部分点击事件没有反应了 [ 68%]

...是引擎的bug。 Chrome控制台有警告,描述:Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952 但是好像之前也有,所以...

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

197. playByFrame动画监听问题,真不会了。就一个小问题。监听不到动画结束。。。 [ 68%]

...HitAllInfo.length;这个已经获取到了。射线获取的 //是不是我Event.COMPLETE写错了?应该怎么用求教啊。。。。。 Laya.stage.on(Laya.Event.CLICK, this, function () {                 for (var i = 0; i < _outHitAllInfo.length; i++) {                     ...

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

198. 播放骨骼动画 [ 68%]

...tar:Laya.Skeleton; this.factory = new Laya.Templet(); this.factory.on(Laya.Event.COMPLETE, this, this.parseComplete); this.factory.on(Laya.Event.ERROR, this, this.onError); this.factory.loadAni("sp/aa.sk"); this.avatar = this.factory.buildArmature(0); this.avatar.play(0,true); 2017-07-18 添加评...

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

199. 怎么获取完全限定类名,就像as的getQualifiedClassName [ 68%]

...只限基于ActionScript的项目,基于ts的嗝屁  const a = new Laya.Event() Laya.__classmap['laya.events.Event'] == a.constructor //true   2017-08-10 0 0 分享 微博 QZONE 微信 宇智波 旋 赞同来自: /**返回指定对象的完全限定名 */ static getQualifiedClassName(value):stri...

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

200. 多个模块之间相互嵌套import,导致运行报错 [ 68%]

...ager身兼多职引起的,在Animals中不要引用Manager。应该引入event机制,当Anaimal的attack动作发生时,触发'attack' 事件,而在Manager里监听attack事件,调用自已的change函数。 Animal.tsclass Animal implements EventEmiter { public sex: number = 0; public Creat...

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