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

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

231. 读取大块材质中的图片并图片切割 [ 78%]

...面切好的图片。   private function updateScore():void{    var data:Object =  {};    var temp:Number =  this.score;    for (var i:int = 5; i > 0; i-- ){     data["item" i] = {index:Math.floor(temp)};     temp = temp/10;    }    trace(this.score);    this.scorebo...

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

232. 官方的示例贴上来,怎么没反映啊 [ 78%]

....weixin.qq.com/cgi- ... ot%3B, "", "get", "text"); function processHandler(data) { console.log(data); } function errorHandler(data) { alert(2); } function completeHandler(e) { alert(1); } } Laya.class(JiHuo, "ui.JiHuo", _super); return JiHuo; })(ui.JiHuoUI); 2018-04-19 添加评论 免费帖 --> 分...

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

233. laya.resource.Texture2D [ 78%]

...re2D _getSource():*[override] 获取纹理资源。 BaseTexture  _parse(data:*, propertyParams:Object = null, constructParams:Array = null):Texture2D[static] Texture2D generateMipmap():void 通过基础数据生成mipMap。 BaseTexture  getPixels():Uint8Array 返回图片像素。 Texture2D ...

来源: Laya2.0_api 发布时间: 20190513

234. 扇形遮罩画不全画了一个很奇怪的形状但是矩形的就没问题。显示效果如下:版本号1.7.10 [ 78%]

...本号1.7.10                 var  p = "ui/icons/icons_skill"+data.icon + ".png";                 view.icon_3.skin=p;                 var im:Image=new Image();                 im.skin=p;                 im.setColor(Const_colorData.ColorData...

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

235. HttpRequest感觉没有发成功 [ 78%]

...xhr.send("https://www.baidu.com","","get","text"); function processHandler(data){ console.log(data); console.log("processHandler"); } function errorHandler(data){ console.log("errorHandler"); } function completeHandler(e){ console.log("completeHandler"); } 2018-08-27 添加评论 免费帖 --> 分...

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

236. 浏览器失去焦点的时候能强制保持帧频吗? [ 78%]

...原本设定的FPS try { sound = new Sound(); sound.addEventListener(SampleDataEvent.SAMPLE_DATA,onWakeUp); channel = sound.play(); }catch(error:Error){}; //*/ } protected function onWakeUp(event:SampleDataEvent):void { event.data.position = event.data.length = 4096 * 4; } 这是flash里的 laya里...

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

237. 小游戏项目 加载有中文的json文件 报错 [ 78%]

...l]), null, Loader.JSON); } private static function onJsonLoaded(url:String,data:Object):void { var arr:Array = data.Sheet1; Laya.loader.clearRes(url); } 微信开发者工具中报错 Unexpected token in JSON at position 34;at api readFile success callback function SyntaxError: Unexpected token in J...

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

238. [LayaNative3]打包安卓发送http发送数据发送后端接收不正确 [ 78%]

..."post", "text");         http.once(Laya.Event.COMPLETE, this, function(data:any){             var data = JSON.parse(data);         }); 附件 : --> 2024-01-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个...

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

239. 微信小游戏wxmin图片加载有点问题 [ 78%]

....fs.copyFile({srcPath:tempFilePath,destPath:saveFilePath,success:function (data){ console.log(data, fileObj) if (!fileObj){ MiniFileMgr.onSaveFile(readyUrl,tempFileName); callBack !=null && callBack.runWith([0]); }else { console.log(fileObj.readyUrl == readyUrl, 'zhege') if (fileObj.readyUrl...

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

240. laya.d3.renderobjs.nativeobj.NativeVertexBuffer3D_API3.0 [ 77%]

...fferUsage canRead instanceBuffer vertexDeclaration Methods destroy getUint8Data orphanStorage serilizeVertexDeclaration setData unbind Constructors constructor new NativeVertexBuffer3D(byteLength: number, bufferUsage: BufferUsage, canRead?: boolean): NativeVertexBuffer3D Overrides VertexBuffer3D.con...

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