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

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

71. 二次开发 · LayaAir3.3 · 引擎文档 · LAYABOX [ 47%]

... } ExportJavaFunction.CallBackToJS(JSBridge.class,"testAsyncCallback", obj.toString()); } }); } 1.3 iOS/OC层 发布后,使用XCode打开项目,在类JSBridge中添加下列函数: +(NSString*)testString:(NSString*)value { NSLog(@"OC: %@",value); return @"LayaBox"; } +(NSNumber*)testNumber:(NSNu...

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

72. 引擎中的修改意见 [ 47%]

...failed Status:" + this._http.status + " text:" + this._http.statusText + e.toString()); } 4、URL中formatURL方法中使用customFormat传入参数有问题, 多了个base public static function formatURL(url:String, base:String = null):String { if (!url) return "null path"; //如果是全路径,...

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

73. 3D中摄像机绕物体旋转该如何实现? [ 45%]

...itivity; // m_debugTip.text = ( currentTouchDistance - lastTouchDistance ).ToString() + " + " + targetDistance.ToString(); //把距离限制住在min和max之间 //备份上一次触摸点的位置,用于对比 this.oldPosition1 = tempPosition1; this.oldPosition2 = tempPosition2; this.m_IsSingleFi...

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

74. 官方案例里摄像机绕物体旋转脚本的问题 [ 45%]

...itivity; // m_debugTip.text = ( currentTouchDistance - lastTouchDistance ).ToString() + " + " + targetDistance.ToString(); //把距离限制住在min和max之间 //备份上一次触摸点的位置,用于对比 this.oldPosition1 = tempPosition1; this.oldPosition2 = tempPosition2; this.m_IsSingleFi...

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

75. LAYABOX游戏实时语音之APP版本 [ 41%]

...mStoragePath = Environment.getExternalStorageDirectory().getAbsolutePath().toString(); } } private String getAudioPath(){ String audioPath = mStoragePath + "/"; audioPath += UUID.randomUUID().toString() + ".wav"; return audioPath; } public boolean onTouch(final String type){ switch(type){ case "d": ...

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

76. 引擎 TiledMap 居然不支持图块翻转 [ 39%]

...                      tAnimationSprite.setTileTextureSet(tIndex.toString(), tTileTexSet);                                 gridSprite.addAniSprite(tAnimationSprite);                                 gridSprite.addChild(tAnimationSprite);               ...

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

77. 脚本组件继承于 Laya.Script。 其中的_update方法,多长时间会调用一次? 可以设置调用时间吗? [ 39%]

...rray<any>, coverBefore?: boolean): void; /** 返回统计信息。*/ toString(): string; /** * 清理定时器。 * @param caller 执行域(this)。 * @param method 定时器回调函数。 */ clear(caller: any, method: Function): void; /** * 清理对象身上的所有定时器。 * @param ca...

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

78. 本地双击html如何打开laya项目? [ 36%]

...TAG, "文件大小:" + buffer. length); Log. i(TAG, "内容:" + buffer.toString()); buffer = new byte [fis.available()]; fis.read(buffer); os.write(buffer); os.flush(); os.close(); fis.close(); socket.close(); } else { os.println( "HTTP/1.0 404 FileNotFonud!" ); os.close(); } } catch (IOExceptio...

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

79. 开放数据域组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 23%]

...mp;& text >= 0 && text <= 9999) { this.owner.text = text.toString() } else { this.owner.text = "1000"; } //开发者要根据这个key来获取数据 let KVData = { key: "playerData", value: this.owner.text } KVDataList.push(KVData); //@ts-ignore wx.setUserCloudStorage({ KVDataList...

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