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

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

341. 3D中的Animator如何从指定的某一帧开始播放动画 [ 74%]

...Clip(totalAnimationClip,"runShoot",startFrame); animator.on(Event.STOPPED, this, this.removeClip); animator.on(Event.COMPLETE, this, this.removeClip); animator.play("runShoot"); 2018-07-26 0 1 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 这个要在unity 里面进行切片,从那一帧开...

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

342. 2D物理-复合碰撞器 [ 74%]

...让项目开发更高效。class Physics_Physics_Tumbler { constructor() { this.count = 0; this.totalBox = 200; Laya.Config.isAntialias = true; Laya.Laya.init(Laya.Browser.clientWidth, Laya.Browser.clientHeight, Laya.WebGL); Laya.Stat.show(); Laya.Physics.enable({ gravity: 0 }); Laya.PhysicsDebugDra...

来源: Laya2.0_示例 发布时间: 20251209

343. BUG:Sprite.event() [ 74%]

...JS代码,的确有问题,data.unshift没有判断是否是数组 if (this.method==null)return null; var id=this._id; if (data==null) var result=this.method.apply(this.caller,this.args); else if (!this.args && !data.unshift)result=this.method.call(this.caller,data); else if (this.args)res...

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

344. LayaAir能做RPG吗?不要问我能不能,因为我已经在做 - 杀意来袭 [ 74%]

...class A {  protected _id:number = 1;    public get id():number { return this._id }  public set id(value:number){     this._id = vaule;  } } class B extends A {   public set id(value:number){     this._id = value + 1;   } } class C extends A {  public get id():number { return this._id } ...

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

345. error TS2339: Property 'delta' does not exist on type 'Event'. [ 74%]

...fined错误 LayaAirIDE2.2 - Laya3D init error ,must support webGL Warning!,this class[MiniAdpter] already exist: Object {init: } 关于@prop {name:Tab,type:Node} 我觉得好麻烦啊 ,请问一下有别的方法吗 问题状态 最新活动: 2018-04-23 11:15 浏览: 747 关注: 2 人

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

346. 模拟鼠标事件 [ 74%]

...n() { //初始化引擎 Laya.init(600,400); //手动调stage的click事件 this.onClick(); //给stage监听点击事件 Laya.stage.on(Event.CLICK,this,onClick); } private function onClick():void { trace("test!"); } } } 2017-06-07 0 3 分享 微博 QZONE 微信 Playerdata1 赞同来自: 谢谢楼上...

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

347. 陀螺仪与加速计(JavaScript-LayaAir基础篇(JS)-硬件设备相关) [ 74%]

...下面演示获取旋转方位信息: ```typescript Laya.init(550, 400); this.info = new Laya.Text(); this.info.fontSize = 50; this.info.color = "#FFFFFF"; this.info.size(Laya.stage.width, Laya.stage.height);  Laya.stage.addChild(this.info);  Laya.Gyroscope.instance.on(Laya.Event.CHANGE, this, o...

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

348. 父容器为何不响应鼠标事件 [ 74%]

...ddChild(father) father.x = 100; father.y = 100; father.on(Laya.Event.CLICK,this,this.onTestClick) 然而点击后onTestClick()根本不响应,如果改成son.on(...)倒是可以,该怎么解决呢? 2018-10-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀...

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

349. input setforbidEdit is not a function [ 74%]

...序报错window.focus is not a function 调用动画结束on方法,报错this.zombieAnimator.on is not a function laya加载unity插件导出的场景 physics3D is not a function textinput移除后再添加会将之前的内容全部赋值给全部input at api readFile fail callback function 在...

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

350. DOM元素-视频 [ 74%]

...位置,对齐的位置和refence重合 Laya.stage.on(Laya.Event.RESIZE, this, Laya.Utils.fitDOMElementInArea, [videoElement, reference, 0, 0, reference.width, reference.height]);class DOM_Video { constructor() { Laya.init(800, 600); Laya.stage.bgColor = "#FFFFFF"; Laya.stage.alignH = Laya.Stage.AL...

来源: Laya_示例 发布时间: 20251209