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

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

121. laya.resource.Texture2DArray_API3.0 [ 72%]

...t gpuCompressFormat hasListener isCreateFromURL off offAll offAllCaller on once setImageData setPixlesData setSubPixelsData destroyUnusedResources Constructors constructor new Texture2DArray(width: number, height: number, depth: number, format: TextureFormat, mipmap?: boolean, canRead: boolean, sRGB...

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

122. 求解关于跨域的具体操作 [ 72%]

....setRequestHeader('Content-Type','application/x-www-form-urlencoded'); xhr.once(Laya.Event.COMPLETE, this, this.completeHandler, [url, loader]); xhr.once(Laya.Event.ERROR, this, this.errorHandler); console.log("-----------------send------------------", url); xhr.send(url, "", "get", "arraybuffer"); ...

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

123. HttpRequest在网页上和APP上表现不一致 [ 72%]

...ntimeout = function(){console.log("http timeout test: timeout")};     hr.once(Laya.Event.COMPLETE, this, ()=>{console.log("http timeout test: success");});     hr.once(Laya.Event.ERROR, this, (e: any)=>{console.log("http timeout test: error " + e.toString());});     console.log("http tim...

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

124. web和微信端没有问题,打包成apk后 httprequest报Request failed Status:404 text:undefined [ 72%]

... 与内容相关的链接 提交 2 个回复 金风 赞同来自: this.xhr.once(Laya.Event.COMPLETE, this, this.CompleteHandler); this.xhr.once(Laya.Event.ERROR, this, this.ErrorHandler); this.xhr.on(Laya.Event.PROGRESS, this, this.ProgressHandler); this.xhr.send(Global.WebHost+this.currentRequest.u...

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

125. 二进制图片(TypeScript-2D进阶篇(TS)-游戏加载策略) [ 71%]

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

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

126. 采用on绑定事件后,界面释放时,持有的回调对象句柄会被清除吗?谢谢! [ 71%]

...释放! 2017-05-11 0 1 分享 微博 QZONE 微信 jay1298 赞同来自: once事件的也不会自动移除吗?  如果需要手动移除的话,在什么情况下移除比较好呢?   给界面添加一个Event.REMOVED事件,在这里面移除吗?   感谢解答! 2017-05-13 0 1 分...

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

127. 二进制图片(ActionScript-2D进阶篇(AS3)-游戏加载策略) [ 71%]

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

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

128. laya.d3.resource.models.Mesh_API3.0 [ 71%]

...es hasListener isCreateFromURL markAsUnreadbale off offAll offAllCaller on once setBoneIndices setBoneWeights setColors setIndices setNormals setPositions setTangents setUVs setVertices destroyUnusedResources load Constructors constructor new Mesh(isReadable?: boolean): Mesh Overrides Resource.__con...

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

129. loading界面实现图片预加载后,创建Sprite执行loadImage出错 [ 71%]

...建,console给出的错误提示为:       Uncaught TypeError: tex.once is not a function          at Graphics.__proto.drawTexture (laya.core.js:1438)          at onloaded (laya.core.js:1737)          at Graphics.__proto.loadImage (laya.core.js:1733)          at Function....

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

130. laya.display.Node_API3.0 [ 71%]

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