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

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

561. 解决跨域相关! [ 72%]

...连不上, 看代码-> this.hr=new HttpRequest(); this.hr.once(Laya.Event.PROGRESS, this, this.onHttpRequestProgress); this.hr.once(Laya.Event.COMPLETE, this, this.onHttpRequestComplete); this.hr.once(Laya.Event.ERROR, this, this.onHttpRequestError); this.hr.send("http://www.baidu.com", null, '...

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

562. Laya截图3D场景相关模型,导致模型透视! [ 72%]

...calSize = 5; this.effRes = Laya.Sprite3D.load(resUrl); this.effRes.on(Laya.Event.HIERARCHY_LOADED, this, function(){ this.eff1 = scene.addChild( Laya.Sprite3D.instantiate(this.effRes)); this.eff1.transform.position = new Laya.Vector3(0,0,50); this.eff1.transform.rotate(new Laya.Vector3(0, 60, 0), tr...

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

563. Sprite3D的Layer(JavaScript-3D基础(JS)-LayaAir3D之精灵) [ 72%]

...4; ...... //切换图层按钮事件监听 this.changeActionButton.on(Laya.Event.CLICK, this, function():void { this.camera.removeAllLayers(); this.layerIndex ++; this.camera.addLayer(this.layerIndex%4 +1); this.camera.addLayer(5); }); ``` ![](img/1.gif)(图1)

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

564. Sprite3D的Layer(TypeScript-3D基础(TS)-LayaAir3D之精灵) [ 72%]

...4; ...... //切换图层按钮事件监听 this.changeActionButton.on(Laya.Event.CLICK, this, function():void { this.camera.removeAllLayers(); this.layerIndex ++; this.camera.addLayer(this.layerIndex%4 +1); this.camera.addLayer(5); }); ``` ![](img/1.gif)(图1)

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

565. laya.display.Node_API3.0 [ 72%]

...表中的显示对象。Node 对象可以有子显示对象。 Hierarchy EventDispatcher Node Sprite Sprite3D Index Constructors constructor Properties _extra _scene _url name tag Accessors active activeInHierarchy components destroyed displayedInStage hideFlags is3D numChildren parent scene timer u...

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

566. Sprite3D-Sprite3D变换 [ 72%]

...mport laya.d3.resource.models.Mesh; import laya.display.Stage; import laya.events.Event; import laya.resource.Texture; import laya.utils.Handler; import laya.utils.Stat; import common.CameraMoveScript; public class Sprite3DTransform { private var scene:Scene; private var layaMonkey1:Sprite3D; privat...

来源: Laya_示例 发布时间: 20251209

567. 龙骨动画残影 [ 72%]

...       this._hero.scale(0.3, 0.3);         this._hero.on(Laya.Event.STOPPED, this, this._onPlayed);         this._play();                       }     private _play()     {         if (this._curAction >= this._hero.getAnimNum())         {  ...

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

568. HttpRequest详解(TypeScript-LayaAir基础篇(TS)-数据与通信) [ 71%]

...MLHttpRequest`和`XMLHttpRequestUpload`都继承了同一个`XMLHttpRequestEventTarget`接口所以upload也具有上述事件。 ​ ## 在laya中怎么使用 laya中用HttpRequest对XMLHttpRequest进行了简单的封装,HttpRequest继承的是EventDispatcher,具有事件派发的功能。我...

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

569. spine 回调函数的参数没有效果 [ 71%]

... 没有改变都是0,spine 输出文件见附件   sk_timelimit.on(Laya.Event.LABEL,this,this.animLabel); private animLabel(data:any) { }   var str = "readyGO1"; sk_view.sk_timelimit.play(str,false); 附件 : --> 归档.zip 2018-05-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...

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

570. 执行了这个 Laya.timer.clear(this, this.onLoop);还是会继续执行onLoop [ 71%]

...mation动画播放完毕后去执行方法? layaair2.0)请问js的Laya.Event.FRAME怎么用,看api中有,但写了不执行。 ipad 声音管理无法暂停继续播放,只能从头开始,pc端正常,代码如下 hit事件执行效率探讨 执行回调函数时报is not a function 怎...

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