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

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

91. 加载-加载序列 [ 82%]

...setLoaded), null, null, 2, false); })(); function onAssetLoaded(texture) { console.log(texture.source); // 恢复默认并发加载个数。 if (++numLoaded == 3) { Laya.loader.maxLoader = 5; console.log("All done."); } } })();module laya { import Texture = Laya.Texture; import Handler = Laya.Handle...

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

92. 骨骼动画-适配版Spine [ 82%]

...is.skeleton.on(Event.STOPPED, this, this.play); this.play(); } onError() { console.log("parse error"); } play() { console.log("1111111111"); if (++this.index >= this.skeleton.getAnimNum()) { this.index = 0; } this.skeleton.play(this.index, false, true); } } new SpineBinary;import Browser = Laya.Brow...

来源: Laya2.0_示例 发布时间: 20240930

93. 在微信小游戏真机wx.onShow和wx.onHide中的currTimer的问题 [ 82%]

...er.window.wx.onHide(_onHideWX); } private function _onShowWX(res:*):void { console.log("wx.onShow:",res); console.log(Laya.timer.currTimer); } private function _onHideWX():void { console.log("wx.onHide:"); console.log(Laya.timer.currTimer); } wx.onShow.currTimer == wx.onHide.currTimer 这两个居...

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

94. 我竟然被射线检测这个小功能给难了一天了 [ 82%]

...wner.scene as Laya.Scene3D;   this.physics=scene.physicsSimulation;     console.log("相机位置",(this.owner.getChildByName("Main Camera") as Laya.Sprite3D).transform.position) } onStart(): void {     Laya.stage.on(Laya.Event.MOUSE_DOWN,this,this.onMouseDownCb) } private onMouseDownCb(e:Laya....

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

95. 无法获取音频的时间长度 [ 82%]

...d/dh/gril1.wav", 1,Laya.Handler.create(this,() => {       }));     console.log(soundChItem.position+"");     console.log(soundChItem.duration+""); 附件 : --> 2023-05-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提...

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

96. LayaNative 日志打印 [ 82%]

LayaNative 日志打印 console.log在App Android 无法打印日志,什么接口才可以在Android App下打印日志 2018-08-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_XS 赞同来自: 你需要...

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

97. 网络通信 · LayaAir3.0文档 · LAYABOX [ 82%]

...SS, this, this.processHandler); } private processHandler(data:any): void { console.log("processHandler"); } private errorHandler(error:any): void { console.log("errorHandler"); } private completeHandler(data:any): void { console.log("completeHandler"); } } new LayaSample(); 2.2 GET 上面这个示...

来源: Laya3.0_文档 发布时间: 20230719

98. 字体相关问题 [ 81%]

...04 12:01 还有个问题: Laya.Font.defaultFont="12px,SimHei"; console.log(Laya.Font.defaultFamily); console.log(Laya.Font.defaultFont); let view:ui.TestUI=new ui.TestUI(); Laya.stage.addChild(view); console.log("font",view.lab2.font); 我设置了defaultFont 但是font输出...

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

99. 发现bug,update大问题!!!!!!!!! 2.13版本 [ 81%]

...alse     }     notleft() {         this.isleft = false         console.log(this.isleft);         /**打印是false,但是update还是在执行*/             }     onright(){         this.isright = true         this.isleft =false     }     notright(){         t...

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

100. untiy导出的粒子特效有播放完成的回掉吗? [ 81%]

....Sprite3D.load(url); this.m_Effect.on(Laya.Event.PLAYED, this, function(){ console.log("PLAYED callback!!"); }) this.m_Effect.on(Laya.Event.PAUSED, this, function(){ console.log("PAUSED callback!!"); }) this.m_Effect.on(Laya.Event.COMPLETE, this, function(){ console.log("COM...

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