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

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

151. 灯光-点光 [ 68%]

...ad("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); layaMonkey.once(Laya.Event.HIERARCHY_LOADED, this, function () { var aniSprite3d = layaMonkey.getChildAt(0); var animator = aniSprite3d.getComponentByType(Laya.Animator); animator.play(null, 1.0, 75, 110); }); var _position = new Laya.V...

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

152. 用最新版本的IDE开发,用AS语言开发,用HttpRequest加载图片报错,用JS语言开发却可以加载 [ 68%]

...var sp:Sprite = new Sprite(); var xhr:HttpRequest = new HttpRequest(); xhr.once(Event.COMPLETE,this,completeHandler); xhr.once(Event.ERROR,this,errorHandler); xhr.send("res/monkey2.png","","get","arraybuffer"); } private function completeHandler(data:Object):void { //加载完成返回的data是arra...

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

153. httpRequest send返回Request failed Status:0 [ 68%]

...aya.HttpRequest(); var url = "http://thirdqq.qlogo.cn/g%3Fb% ... 3B%3B xhr.once(Laya.Event.COMPLETE, this, this.completeHandler, [url, 1]); xhr.once(Laya.Event.ERROR, this, this.errorHandler); xhr.send(url, "", "get", "arraybuffer"); } } GameMain.prototype.completeHandler = function (URL, id, data) ...

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

154. laya.components.AnimationClip2D_API3.0 [ 67%]

...All Inherited Externals Only exported Menu Globals "laya/components/AnimationClip2D" AnimationClip2D Class AnimationClip2D Hierarchy Resource AnimationClip2D Index Constructors constructor Properties _id destroyedImmediately islooping lock name url uuid DEBUG Accessors cpuMemory destroyed gpuMemory ...

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

155. 计时器-延迟执行 [ 67%]

...CK, this, onDecreaseAlpha1); //定时执行一次(间隔时间) Laya.timer.once(3000, this, onComplete1); } function onDecreaseAlpha2(e) { //移除鼠标单击事件 button2.off(Event.CLICK, this, onDecreaseAlpha2); //定时执行一次(基于帧率) Laya.timer.frameOnce(60, this, onComplete2); } fu...

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

156. laya.media.VideoTexture_API3.0 [ 67%]

...hasListener isCreateFromURL load loadedmetadata off offAll offAllCaller on once pause play destroyUnusedResources Constructors constructor new VideoTexture(): VideoTexture Overrides BaseTexture.constructor Defined in laya/media/VideoTexture.ts:33 创建VideoTexture对象, Returns VideoTexture Prop...

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

157. 计时器-延迟执行 [ 66%]

...his, this.onDecreaseAlpha1); //定时执行一次(间隔时间) Laya.timer.once(3000, this, this.onComplete1); } onDecreaseAlpha2(e) { const Event = Laya.Event; //移除鼠标单击事件 this.button2.off(Event.CLICK, this, this.onDecreaseAlpha2); //定时执行一次(基于帧率) Laya.timer.frameO...

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

158. laya.d3.core.Sprite3D_API3.0 [ 66%]

...ter clearTimer clone contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents hasHideFlag hasListener isAncestorOf off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once removeChild removeChildAt re...

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

159. 在native下 Laya.Browser.window.Blob不存在 [ 66%]

...: donloadImageTest: function (ss) { var xhr = new Laya.HttpRequest(); xhr.once(Laya.Event.COMPLETE, this, completeHandler); xhr.once(Laya.Event.ERROR, this, errorHandler); xhr.send("http://192.168.10.108:35553/re ... ot%3B, "", "get", "arraybuffer"); function completeHandler(data) { //加载完成...

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

160. js进度,进度,js场景进度效果 [ 66%]

...载进度 - 由于进度太快无法看到一个虚假的效果 Laya.timer.once(i * 100, this, function() { this.Progress.schedule.value = num; this.Progress.percentage.text = (num * 100).toFixed() + '%'; if (num >= 1) { this.run(); } }); }; p.run = function() { Laya.timer.once(300, this, functio...

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