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

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

311. 加载U3D导出的LH格式粒子特效,加载完成不回调 [ 54%]

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

312. 销毁资源并释放内存(JavaScript-3D基础(JS)-LayaAir3D的内存管理) [ 54%]

...,我们再网格加载完成3秒后对该网格进行销毁 Laya.timer.once(3000,this,function() { //销毁了使用了该网格的精灵 layaMonkey.destroy(); //对网格进行销毁 mesh.destroy(); }); })); ``` **加载完成** 在资源全部加载完成之后,我们可以看到 67.26 M 的...

来源: Laya2.0_文档 发布时间: 20210715

313. XMLRequest在layaNative下请求崩溃,请求官方协助! [ 54%]

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

314. 销毁资源并释放内存(TypeScript-3D基础(TS)-LayaAir3D的内存管理) [ 54%]

...,我们再网格加载完成3秒后对该网格进行销毁 Laya.timer.once(3000,this,function ():void { //销毁了使用了该网格的精灵 layaMonkey.destroy(); //对网格进行销毁 mesh.destroy(); }); })); ``` **加载完成** 在资源全部加载完成之后,我们可以看到 67.26 M...

来源: Laya2.0_文档 发布时间: 20210715

315. BUG:添加RigidBody组件会使anchorX、anchorY失效 [ 54%]

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

316. 分享:IDE使用SWF动画的销毁与反复创建 [ 54%]

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

317. 设置frame会使打包VIVO Tween动画抖动闪烁 [ 54%]

...使打包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

318. laya.device.motion.Gyroscope [ 54%]

...| Frames No Frames GyroscopeProperties | Methods Packagelaya.device.motionClasspublic class GyroscopeInheritanceGyroscope EventDispatcher Object 使用Gyroscope.instance获取唯一的Gyroscope引用,请勿调用构造函数。 listen()的回调处理器接受两个参数: function onOrientat...

来源: laya_api 发布时间: 20170929

319. HttpRequest详解(JavaScript-LayaAir基础篇(JS)-数据与通信) [ 54%]

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

320. laya.d3.core.pixelline.PixelLineMaterial_API3.0 [ 54%]

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