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

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

101. web端ios这边加载压缩的图片加载报错 [ 87%]

...: laya.core.js  18667行   complete方法 按照如下修改 complete(data) { this._data = data; if (this._customParse) { this.event(Event.LOADED, data instanceof Array ? [data] : data); } else { this._http.offAllCaller(this); Loader._loaders.push(this); if (!Loader._isWorking) Loader.checkNext()...

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

102. 一个EffectAnimation只能创建一个动画效果吗 [ 87%]

...代码中写死只能获取第一个 /** *设置动画数据。 *@param uiData */ __getset(0,__proto,'effectData',null,function(uiData){ if (uiData){ var aniData=uiData["animations"]; if (aniData && aniData[0]){ var data=aniData[0]; this._setUp({},data); if (data.nodes && d...

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

103. laya.utils.ImgUtils_API3.0 [ 87%]

...s/ImgUtils" ImgUtils Class ImgUtils 图片二进制处理类 @ author:xs @ data: 2021-11-03 10:54 Hierarchy ImgUtils Index Properties data isSavaData Accessors isSupport Methods _arrayBufferToURL arrayBufferToURL destroy Properties Static data data: any Defined in laya/utils/ImgUtils.ts:11 存储数...

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

104. Web Storage数据存储(ActionScript-LayaAir基础篇(AS3)-数据与通信) [ 87%]

....init(100,100); LocalStorage.setItem("key","hello"); LocalStorage.setItem("data","hello"); var data:Object = {"index":0,"index1":1}; LocalStorage.setJSON("item",data);//直接传入Object,接口内部转化为JSON格式字符串存储 } } } ``` 在chrome中运行之后按快捷键F12,结果如...

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

105. laya.utils.Dragging [ 87%]

...perties PropertyDefined By  area : Rectangle 滑动范围。Dragging  data : Object 事件携带数据。Dragging  elasticBackTime : Number 橡皮筋回弹时间,单位为毫秒。Dragging  elasticDistance : Number 橡皮筋最大值。Dragging  hasInertia : Boolean 表示拖动是否...

来源: laya_api 发布时间: 20170422

106. 已上传demo window["wx"].env.USER_DATA_PATH 下的资源用loader加载不了 [ 87%]

已上传demo window["wx"].env.USER_DATA_PATH 下的资源用loader加载不了 资源文件用 var fileManager = window["wx"].getFileSystemManager();         fileManager.access() 这个接口检查过是存在的 附件 : --> Evolution_test.zip 2019-06-28 添加评论 免费帖 --> 分享 ...

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

107. as项目移植layflash问题 [ 87%]

...务器握手已经成功~但是发送socket错误 public function send(msgData:SoketData):void         {             var m_dataSize:int;             m_dataSize = m_minReadable + m_dateHeadLength;             if (msgData.Data != null)             {      ...

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

108. 排行榜上的玩家头像绘制问题 [ 87%]

...如何绘制玩家头像。我用了同样的代码 function drawRankList(data) {     data.forEach((item, index) => {       // context.drawImage(item.avatarUrl, 0, 0, 200, 400);       // var image1 = wx.createImage()       // image1.src = item.avatarUrl       // context.drawIma...

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

109. Ts简单对象池 [ 87%]

...值所对应的对象池"); return null; } } }  /** * pop的返回值当data为空时返回undefined * 使用了泛型约束 */ class QueueT<T> { constructor() { this.data=new Array<T>(); }     private data: Array<T>;     push = (item: T) => this.data.push(item); pop = ...

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

110. 微信小程序加载 lh 模型文件 报错 [ 86%]

...这个问题,我测试了下 截图中__proto.onAsynLoaded=function(url,data,params)的 参数data    在layabo中是个数组后面去取var json=data[0]; 没问题   在微信小程序中 data是个字符串 去取var json=data[0]; 取到的只是个字符 所有直接就报错了 附件 : --...

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