大约有 698 项符合查询结果, 库内数据总量为 30,936 项。 (搜索耗时: 0.0085 秒)
Laya_社区(286) Laya3.0_api(156) laya_api(106) Laya2.0_api(98) Laya2.0_文档(24) Laya_示例(16) Laya3.0_文档(8) Laya2.0_示例(4)
...ite3D.load("res/h5/LayaScene_Effect/Effect.lh")) as Laya.Sprite3D; this.lz.once(Event.HIERARCHY_LOADED, this,function():void{ console.error("改变大小"); }); 之前是按照ls导出的不回调,你们在线技术说场景只能用相机操作。我现在改成了Sprite3D ,lh文件 依旧不...
来源: Laya_社区 发布时间: 20180327
...,我们再网格加载完成3秒后对该网格进行销毁 Laya.timer.once(3000,this,function() { //销毁了使用了该网格的精灵 layaMonkey.destroy(); //对网格进行销毁 mesh.destroy(); }); })); ``` **加载完成** 在资源全部加载完成之后,我们可以看到 67.26 M 的...
来源: Laya2.0_文档 发布时间: 20210715
... void): void { let hr = new Laya.HttpRequest(); hr.once(Laya.Event.COMPLETE, this, (e: any): void => { callback(JSON.parse(hr.data)); }); hr.send(url, JSON.stringify(data), 'post', 'text', ['content-type', 'application/json;charset=UT...
来源: Laya_社区 发布时间: 20190829
...,我们再网格加载完成3秒后对该网格进行销毁 Laya.timer.once(3000,this,function ():void { //销毁了使用了该网格的精灵 layaMonkey.destroy(); //对网格进行销毁 mesh.destroy(); }); })); ``` **加载完成** 在资源全部加载完成之后,我们可以看到 67.26 M...
来源: Laya2.0_文档 发布时间: 20210715
BUG:添加RigidBody组件会使anchorX、anchorY失效 onClick(event: Laya.Event) { let sp = new Laya.Image(); sp.skin = "comp/tab.png" let body = new Laya.RigidBody(); body.gravityScale = 0; sp.addComponentIntance(body); sp.anchorX = sp.anchorY = 0.5; sp.pos(event.stageX, event.stageY); this.own...
来源: Laya_社区 发布时间: 20200216
... Laya.stage.addChild(testView); Laya.timer.once(2000,this,onLoop,[testView]); } private function onLoop(testView:TestView):void { testView.mc.stop(); testView.mc.destroy();//销毁MC ...
来源: Laya_社区 发布时间: 20170608
...使打包VIVO Tween动画抖动闪烁 public DoFlash ():void { Laya.timer.once(700, this, this.FlashTween); } private FlashTween ():void { this.hand.scale(2, 2); this.hand.alpha = 1 Tween.to(this.hand, {scaleX:1, scaleY:1, alpha:1}, 300, null, Laya.Handler.create(this, this.DoFlash)); } 循环Tween ...
来源: Laya_社区 发布时间: 20211109
...| Frames No Frames GyroscopeProperties | Methods Packagelaya.device.motionClasspublic class GyroscopeInheritanceGyroscope EventDispatcher Object 使用Gyroscope.instance获取唯一的Gyroscope引用,请勿调用构造函数。 listen()的回调处理器接受两个参数: function onOrientat...
来源: laya_api 发布时间: 20170929
...w Laya.HttpRequest(); xhr.http.timeout = 10000;//设置超时时间; xhr.once(Event.COMPLETE,this,completeHandler); xhr.once(Event.ERROR,this,errorHandler); xhr.on(Event.PROGRESS,this,processHandler); xhr.send("res/data.data","","get","text"); function processHandler(data){ console.log(data); } fu...
来源: Laya2.0_文档 发布时间: 20210714
...ne hasListener isCreateFromURL off offAll offAllCaller oldparseEndEvent on once removeDefine setBool setBoolByIndex setBuffer setBufferByIndex setColor setColorByIndex setDefine setFloat setFloatByIndex setInt setIntByIndex setMatrix4x4 setMatrix4x4ByIndex setShaderData setShaderDataByIndex setShade...
来源: Laya3.0_api 发布时间: 20231115