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

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

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

...//iOS注意函数签名,注意与Android的不同 alert(bridge.call("testString:","hello")); alert(bridge.call("testNumber:",256.0)); alert(bridge.call("testBool:",false)); obj.value = "Hello OC!"; bridge.callWithBack(function(value: any) { var obj = JSON.parse(value) alert(obj.value); },"testAsyn...

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

32. 我用的HBox做的进度条为啥总是一闪一闪的。 [ 59%]

...); this.addChild(this.hbox); }else{ this.hbox.removeChildren(); } var cout:string = value.toString(); for(var i=0;i<cout.length;i++){ var clip: Laya.Clip = new Laya.Clip("loading/num0-9.png", 10, 1); clip.index = parseInt(cout.charAt(i)); this.hbox.addChild(clip); } var clip_perc:Laya.Clip = new ...

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

33. [LayaAirIDE3]打包原生安卓 , 运行错误 , 我不清楚是不是我自己的问题. [ 59%]

...自定义一下方法 比如:     private formatNumber(value: number): string {         if (value === 0) return '0';          const absValue = Math.abs(value);         const sign = value < 0 ? '-' : '';          // 简单的单位转换         if (absValue >= 1e9) { ...

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

34. as怎么用protobytebuf传输数据到服务端 [ 59%]

...msg; ByteBuf buf = frame.content(); //真正的数据是放在buf里面的 String aa = buf.toString(Charset.forName("utf-8")); //将数据按照utf-8的方式转化为字符串 System.out.println(aa); 其中的aa输出为“ ” 附件 : --> 2017-04-05 添加评论 免费帖 --> 分享 微博 QZONE ...

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

35. 性能测试-卡通人物2 [ 58%]

....update(); } if (Laya.timer.currFrame % 60 === 0) { text.text = Stat.FPS.toString(); } } })();module laya { import Stage = Laya.Stage; import Text = Laya.Text; import Stat = Laya.Stat; import WebGL = Laya.WebGL; import Animation = Laya.Animation; import Sprite = Laya.Sprite; export class Performance...

来源: Laya_示例 发布时间: 20260130

36. 性能测试-卡通人物2 [ 58%]

....update(); } if (Laya.timer.currFrame % 60 === 0) { text.text = Stat.FPS.toString(); } } } class Character extends Laya.Sprite { constructor(images) { super(); this.speed = 5; this.bloodBar; this.animation; this.nameLabel; this.createAnimation(images); this.createBloodBar(); this.createNameLabel(); ...

来源: Laya2.0_示例 发布时间: 20260130

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

...以解决了,安装apk: public static boolean install(Context context, String filePath) { Intent i = new Intent(Intent. ACTION_VIEW); File file = new File(filePath); if (file != null && file.length() > 0 && file.exists() && file.isFile()) { i.setDataAndType(Uri.parse("...

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

38. 给Dictionary添加个长度 [ 54%]

...x:int = _keys.indexOf(key); if (index >= 0) return index; key = (key is String) ? Number(key) : ((key is Number) ? key.toString() : key); return _keys.indexOf(key); } /** * 返回指定键名的值。 * @param key 键名对象。 * @return 指定键名的值。 */ public function get(key:*):* { v...

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

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

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

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