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

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

131. 示例 骨骼动画换装 加不上点击事件 [ 59%]

...指针要变成可点击的指针“小手的样子”,求大神解析 function parseComplete() { mArmature = mFactory.buildArmature(1); mArmature.x = mStartX; mArmature.y = mStartY; //mArmature.scale(0.5, 0.5); Laya.stage.addChild(mArmature); //mArmature.on(Event.LABEL, this, onEvent); mArmature....

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

132. Animation的complete事件发出是时机不够准确 [ 59%]

...的链接 提交 2 个回复 topwcd 赞同来自:          protected function _frameLoop():void { if (_style.visible && _style.alpha > 0.01) { this.index = _index, _index++; if (this._index >= this._count) { if (loop) this._index = 0; else { _index--; stop(); } event(Event.COMPLE...

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

133. 没有预加载的图片怎么获取width和height ? [ 59%]

...前加载资源,在回调中进行操作设置 text_load_width_height(); function text_load_width_height() {      Laya.init(600,400);     Laya.loader.load(["../laya/assets/comp/image.png","../laya/assets/comp/vscroll.png"],Laya.Handler.create(this,onAssetLoad));      } function onAssetL...

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

134. 3D移动定时器没方法怎么回事。。。 [ 59%]

...以。。。 var vect =new Laya.Vector3(0.1,0,0); Laya.timer.loop(100,this,function(){ fish.transform.Position(vect,true,false); });   我想让他定时往左往右走。。。或者有个加速度。。。。JS代码在laya里。。。名字和使用方法都变了。。。 附件 : --> 2017-09-1...

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

135. 如何清除graphics绘制的矢量图 [ 59%]

...   let count1 = 1;             Laya.timer.loop(3000, this, function () {                 sp.graphics.clear();                 if (count1 == 0) {                     sp.graphics.drawLines(0, 0, path, "#0eff00", 5);          ...

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

136. laya.ani.bone.Skeleton [ 59%]

...ren(... args):void 批量增加子节点 Node clearTimer(caller:*, method:Function):void 清理定时器。功能同Laya.timer.clearTimer()。 Node contains(node:Node):Boolean 当前容器是否包含指定的 Node 节点对象 。 Node customRender(context:RenderContext, x:Number, y:Number):void...

来源: laya_api 发布时间: 20170929

137. Laya.Video内存泄漏问题 [ 59%]

...pe: Laya.Loader.BUFFER }], Laya.Handler.create(this, createVideo)); var v; function createVideo() { var video_file = new Blob([Laya.loader.getRes(video_url)], {type: 'video/webm'}); var blob_url = URL.createObjectURL(video_file); var video = new Laya.Video(); video.loop = true; video.load(blob_url);...

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

138. ScrollRect设置会引起其他的UI资源无法正在显示 [ 59%]

...rivate var _path:Sprite = new Sprite(); private var arr:Array = []; public function TestView() { super(); _path.pivot(0,0); _path.pos(a.x,a.y); this.addChild(_path); _path.rotation = Math.atan2(b.y - a.y, b.x - a.x) / Math.PI * 180; var len:int = Math.floor(GetPathLen()/PATH_LEN)+2; var p:Image; for...

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

139. 有没有SoundChannel的示例? [ 58%]

... SoundManager.addChannel(channel); _btn.on(Event.CLICK, this, soundClick); function soundClick(evt:Event){ alert("channel.isStoped:"+channel.isStoped); if (channel.isStoped){ channel.play(); }else{ channel.stop(); } } channel.isStoped输出是:undefined 2017-01-16 添加评论 免费帖 --> 分享...

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

140. iPhone6 ios 8.3系统 最新的QQ 锁屏再解锁 游戏闪退 [ 58%]

...台事件  window.document.addEventListener("qbrowserVisibilityChange", function(e):void{ trace("监听QQ缩小至后台事件:"+(!e.hidden ? "前置显示":"后台隐藏")); isStopLoop = e.hidden; if (e.hidden) { _isVisibility = false; if (_this._isInputting()) Input["inputElement"].target.focus =...

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