大约有 218 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0044 秒)
Laya_社区(141) Laya3.0_api(21) laya_api(14) Laya2.0_api(14) Laya2.0_文档(11) Laya3.0_文档(6) Laya_示例(6) Laya2.0_示例(5)
....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
...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
...是不断切换音乐的时候也会增加,如 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
...脚本里隐藏或者销毁这个粒子效果 Laya.timer.frameOnce(1,this,function(){粒子效果.destroy();}); 需要延迟一帧,不然销毁之后定时器还会查一帧,找不到对象会报错。 2018-06-15 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题...
来源: Laya_社区 发布时间: 20180615
...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
...是用不了吗?播放的时候报错误:TypeError: tSound.play is not a function. (In 'tSound.play(startTime,loops)', 'tSound.play' is undefined)
来源: Laya_社区 发布时间: 20180328
...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
...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
... 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
...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