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

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

191. laya.components.AnimatorState2D_API3.0 [ 69%]

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

192. 获取鼠标当前状态 [ 69%]

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

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

193. 事件函数作用域问题 [ 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

194. 模型与动画的导入使用 · LayaAir3.3 · 引擎文档 · LAYABOX [ 68%]

...= girl.getComponent<Laya.Animator>(Laya.Animator); }); this.on( Laya.Event.MOUSE_DOWN, this, this.switchAni ); } switchAni(): void { if (this._isRun) { //播放对应的动画 this._animator.play("idle"); } else { this._animator.play("run"); } this._isRun = !this._isRun; } } 二、刚体动画...

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

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

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

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

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

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

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

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

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

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. 播放骨骼动画 [ 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