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

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

171. 骨骼动画销毁后再创建,报错 [ 55%]

....completeCreate __proto.recreateResource __proto.activeResource (anonymous function) __proto._drawTextureM __proto.drawTextureWithTransform ._drawTextureWithTransform __proto._renderAll __proto._graphics __proto._transform __proto.render __proto._childs __proto.render __proto._childs __proto.render ...

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

172. 脚本组件继承于 Laya.Script。 其中的_update方法,多长时间会调用一次? 可以设置调用时间吗? [ 54%]

...te(useFrame: boolean, repeat: boolean, delay: number, caller: any, method: Function, args: Array<any>, coverBefore: boolean): void; /** * 定时执行一次。 * @param delay 延迟时间(单位为毫秒)。 * @param caller 执行域(this)。 * @param method 定时器回调函数。 * @param a...

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

173. 播放音乐 失去焦点后回来内存会不断增加 [ 54%]

...是不断切换音乐的时候也会增加,如 Laya.timer.loop(1000,this,function():void{ SoundManager.playMusic(UrlUtils.getSoundUrl("runbeard/Audio_Game_Back")); }); Laya_Aaron • 2018-02-08 20:10 都换了就不会切换也增加了 Laya_Aaron • 2018-02-08 20:11 焦点切换,和...

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

174. u3d导入的粒子效果没有停止方法以及相应事件的吗? [ 54%]

...脚本里隐藏或者销毁这个粒子效果 Laya.timer.frameOnce(1,this,function(){粒子效果.destroy();}); 需要延迟一帧,不然销毁之后定时器还会查一帧,找不到对象会报错。 2018-06-15 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题...

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

175. js环境下使用Loader加载图片在Sprite对象的.on函数无效 [ 54%]

...oader.on(Event.ERROR, this, onError);     this.moveover =true;     function onAssetLoaded(texture)     {         console.log("加载结束");         pic="res/castlebeyond.jpg";         this.bgimg = new Laya.Sprite();         this.bgimg.width=scronw;   ...

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

176. QQ 玩一玩 laya.bkadpter.js (新的版本) 报错 [ 53%]

...是用不了吗?播放的时候报错误:TypeError: tSound.play is not a function. (In 'tSound.play(startTime,loops)', 'tSound.play' is undefined)

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

177. laya.media.SoundNode_API3.0 [ 53%]

...s type: string Optional data: any Returns void callLater callLater(method: Function, args?: any[]): void Inherited from Node.callLater Defined in laya/display/Node.ts:621 延迟运行指定的函数。 在控件被显示在屏幕之前调用,一般用于延迟计算数据。 see #runCallLater() Pa...

来源: Laya3.0_api 发布时间: 20231115

178. 物理引擎,我按照官方例子做的,不知道那里写错了,总是报这个错,大神帮我看下 [ 53%]

...aRender; private var mouseConstraint:*; private var engine:*; /***/ public function Retitution() { super(); this.width = stageWidth; this.height = stageHeight; setup(); } private function setup():void { initMatter(); initWorld(); Laya.stage.on("resize",this,onResize); } private function initMatter()...

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

179. drawTexture 画出来的数据会有以前的数据 [ 53%]

... var xNum:int = 0; private var yNum:int = 0; private var img:Image; public function TestView() { img = new Image("comp/lhjicon_5.png"); img.x = 640; img.y = 320; iconSpr = new Sprite(); iconSpr.width = 1280; iconSpr.height = 640; iconSpr.addChild(img); btn.on(Event.CLICK,this,runGame1); } private fu...

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

180. timer无法执行 [ 52%]

...ial();   Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(null, function(layabox: Laya.Texture2D): void{ ball1mat.albedoTexture = layabox; })); //ball1mat.tilingOffset = new Laya.Vector4(10, 10, 0, 0); ball1.meshRenderer.material = ball1mat; //添加刚体 ball1.addComponent(Laya.PhysicsC...

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