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

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

371. 新手常问问题 欢迎补充 [ 41%]

...dManager.playMusic会返回一个SoundChannel实例。你可以声明一个变量来接收它,然后通过SoundChannel来控制播放、停止、暂停。具体代码如下所示: var soundC:SoundChannel = SoundManager.playSound("url"); //播放 soundC.play(); //停止 soundC.stop(); //暂停 so...

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

372. laya.ui.View [ 39%]

...ew (default = null) — 组件所在的视图实例,用来注册var全局变量,如果值为空则不注册。 Returns* — 一个 Component 对象。 destroy()method override public function destroy(destroyChild:Boolean = true):void 销毁此对象。 Parameters destroyChild:Boolean (default =...

来源: laya_api 发布时间: 20170929

373. 十几秒以后动画渲染时间变长,帧率变慢,是怎么回事? [ 34%]

...his.width / 2, y_sp ); this._doll_img.skin = doll_item.img;  /** 初始化变量 */ this._to_remove = 0;  // 设置终点 // tofix: this.x = BaseUtils.rand_number( this._fly_site.x, this._fly_site.x + this._fly_site.w ); this.y = BaseUtils.rand_number( this._fly_site.y, this._fly_site.y + this._fl...

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

374. 【简单跑酷--JS版】---Lv.6 终篇 [ 33%]

...否除了边界 如果出了 就通知生成新的floor 这里增加一个变量来判断当前是否已经通知外部了 //因为此处是一个循环的处理 if(!this.isOutComplete && (this.x + this.width) < this.maxRight){ this.isOutComplete = true; this.event(Floor.OUT_COMPLETE, thi...

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