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

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

561. Laya.loader.load怎么停止回调 [ 72%]

...中 不去触发 loadComplete方法 我该怎么办? this._load.off(Laya.Event.COMPLETE, this, this.loadComplete); 这个是没用的 2017-12-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Monica - 知识达...

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

562. 休眠触发Event.BLUR的函数里有静音的话,恢复网页后报错 [ 72%]

休眠触发Event.BLUR的函数里有静音的话,恢复网页后报错 游戏中有这样一个监听Laya.stage.on(Event.BLUR, this, onBlur); onBlur函数里有这样一个语句SoundManager.stopAll(); 进行了主动静音,这样做的目的是休眠后游戏自动结束,结束后的界面...

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

563. 解决跨域相关! [ 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

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

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

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

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

568. 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_示例 发布时间: 20260303

569. 龙骨动画残影 [ 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

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

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

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