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

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

131. Sprite3D 不旋转 [ 60%]

...自己从unity里面导出的sprite3d,都用  Laya.timer.loop(10,null,function():void{                                    layaMonkey.transform.rotate(vect,true,false)                 }) 让他自转,但自己从unity里面导出的sprite3d却不转,这是怎么回事...

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

132. LayoutBox不按顺序输出列表 [ 60%]

...不做的话,又一切恢复正常 // define oneVBox oneVBox.sortItem = function (items) { // do nothing } // then loop 所以究竟是为什么? 2018-08-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_...

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

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

...指针要变成可点击的指针“小手的样子”,求大神解析 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

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

135. 没有预加载的图片怎么获取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

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

138. 如何清除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

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

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