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

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

161. HttpRequest详解(ActionScript-LayaAir基础篇(AS3)-数据与通信) [ 71%]

...类型如下: - `ArrayBuffer` - `Blob` - `Document` - `DOMString` - `FormData` - `null` #### setRequestHeader() 给指定的HTTP请求头赋值.在这之前,你必须确认已经调用 [`open()`](https://developer.mozilla.org/zh-CN/docs/Web/API/XMLHttpRequest#open) 方法打开了一个url. ### ...

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

162. 打包安卓Android studio黑屏 [ 71%]

...程 InitMainCanvas() E/LayaConch5: plugin-----------------EngineStart() = /data/user/0/com.layabox.test//LayaCache/localstorage I/LayaBox: JNI localStoragePath=/data/user/0/com.layabox.test//LayaCache/localstorage I/MainCanvas: Android OpenGL ES Major Version 3 I/WebViewFactory: Loading com.google.a...

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

163. laya.d3.renderobjs.nativeobj.NativeIndexBuffer3D_API3.0 [ 71%]

...fferUsage canRead indexCount indexType indexTypeByteCount Methods _setIndexData destroy getData setData unbind Constructors constructor new NativeIndexBuffer3D(indexType: IndexFormat, indexCount: number, bufferUsage?: BufferUsage, canRead?: boolean): NativeIndexBuffer3D Overrides IndexBuffer3D.const...

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

164. 获取相机renderTexture 作为阴影 的UV [ 71%]

..._ShadowLightMatrix * position;         uv.xy /= uv.w; v_shadow_data = uv;     #endif片段着色器:     gl_FragColor.rgb=saturate(texture2D(u_ShadowMapTex, v_shadow_data1.xy).rgb);    ts代码设置u_ShadowMapTex     onUpdate(){         this.ShadowCamera.transfo...

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

165. LayaAir和原生DOM交互(JavaScript-2D进阶篇(JS)-扩展模块) [ 71%]

...我们看下简单的脚本怎么实现这种效果。 ```javascript var data = '' + '' + '' + 'I like ' + '' + 'cheese' + '' + '' + ''; var DOMURL = window.URL || window.webkitURL || window; var img = new Image(); var svg = new Blob([data], {type: 'image/svg+xml'}); var url = DOMURL.createObjectURL...

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

166. 网络通信 · LayaAir3文档 · LAYABOX [ 71%]

... URL 与包含脚本的文本具有相同的主机名和端口。 * @param data (default = null)发送的数据。 * @param method (default = "get")用于请求的 HTTP 方法。值包括 "get"、"post"、"head"。 * @param responseType (default = "text")Web 服务器的响应类型,可设置为 "...

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

167. 调用Laya.Utils.parseXMLFromString 时一直报undefined的错误 [ 71%]

...tring 时一直报undefined的错误 function treeInit() {     let treeData = "<data>";     for (let i = 0; i < 5; ++i) {         treeData += "<item label='Directory " + (i + 1) + "' isOpen='true'>";         for (let j = 0; j < 5; ++j) {           ...

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

168. 分享:DrawToCanvas内存释放问题! [ 71%]

...sp.drawToCanvas(600,600,0,0); sp2 = new Sprite(); sp2.x = 300+count; base64Data=htmlC.getCanvas().toDataURL(); sp2.loadImage(base64Data); Laya.stage.addChild(sp2); }效果展示:   附件 : --> 2017-08-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: ...

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

169. 通过绘制纹理生成的图片,改变scale时会出现图片不绘制的情况 [ 70%]

...Texture2D(nImageWidth, nImageHeight);             b.setPixels(data);             sp.graphics.drawTexture(new Laya.Texture(b));             Laya.stage.addChild(sp);             let _picScale:number=1;             //每点一下就缩小0....

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

170. QQ玩一玩打包问题 [ 70%]

...t:24px;margin-bottom: 20px"> package log. version: 1.6<br> unzip:/data/apollo_game_pkg//pkg/20180709/1021/2809_src.zip<br> unzip done...<br> /data/apollo_game_pkg/pkg/20180709/1021/cmshow_game_2809<br> qqPlayCore log normal : buildPath:'/trunk/master/bricktest',version:'41...

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