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

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

81. sprite点击事件 位置便宜 [ 45%]

...seHandler); } /** * 鼠标响应事件处理 */ function mouseHandler(e) { switch (e.type) { case Event.MOUSE_DOWN: appendText("\n————————\n左键按下"); break; case Event.MOUSE_UP: appendText("\n左键抬起"); break; case Event.CLICK: appendText("\n左键点击\n—————...

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

82. socket大型项目回调 [ 44%]

... for (var name in msg) { if (protos[name]) { var proto:any = protos[name]; switch (proto.option) { case "optional": case "required": buffer.writeArrayBuffer(this.encodeTag(proto.type, proto.tag)); this.encodeProp(msg[name], proto.type, protos, buffer); break; case "repeated": if (!!msg[name] &&a...

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

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

...getSize().height;                                  switch (this.type)                 {                     case PROGRESS_TIMER_TYPE_RADIAL:                                                  var r:Number = Math.sqr...

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

84. 3d项目安卓包。部分手机报加载3d资源报错 [ 43%]

...33,0x682496 08-20 16:53:51.030 962-1015/? E/MMKernelKeyLogObserver: ingore switch state: -309 2018-08-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_XS 赞同来自: 能提供一个在运行环境报错的...

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

85. laya1.0 的3D项目,GPU型号为Adreno 405的加载3D资源时会报错 [ 43%]

...33,0x682496 08-20 16:53:51.030 962-1015/? E/MMKernelKeyLogObserver: ingore switch state: -309 2018-12-13 添加评论 悬赏 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个回复 为什么被折叠? 0 个回复被折叠 要回复问题请先...

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

86. 分享:图集资源做位图文本的工具类(知道fontclip组件的可以略过了,之前一直没注意到这个组件) [ 42%]

...rtCharsByAlign(align: string): void { let alignConfig = XUtils.TEXT_ALIGN; switch (align) { case alignConfig.CENTER: this.sortOnCenter(); break; case alignConfig.RIGHT: this.sortOnRight(); break; case alignConfig.LEFT: default: this.sortOnLeft(); break; } } /** * 排列字符(适合从左到右)...

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

87. 向官方反映1.75引擎库后 事件执行 发生的bug [ 41%]

...e')this._prePoint.x=this._prePoint.y=-1000000;                 switch (evt.type){                     case 'mousedown':                         this._touchIDs[0]=this._id++;                         if (!MouseManager._isTouchRespond){  ...

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

88. 分享个用美术资源做位图文本的方法。。。 [ 39%]

....addChild(charSp); return charSp; } // 设置位置 private setCharsPos(){ switch (this._posType){ case BPFont.LEFT: this.setCharsPosOnLeft(); break; case BPFont.RIGHT: this.setCharsPosOnRight(); break; case BPFont.CENTER: this.setCharsPosOnCenter(); break; } } // 左对齐 private setCharsPosOnLeft...

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

89. 【简单跑酷--JS版】---Lv.6 终篇 [ 39%]

...ht = 21; var texture1 = Laya.loader.getRes("res/hp_bg.png"); var texture2; switch (type) { case Hp.HP_TYPE_ENERGY: texture2 = Laya.loader.getRes("res/en_bar.png"); break; case Hp.HP_TYPE_SPEED: texture2 = Laya.loader.getRes("res/hp_bar.png"); break; } this.bg = new Sprite(); this.bar = new Sprite();...

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

90. 批量销毁释放内存(JavaScript-3D基础(JS)-LayaAir3D的内存管理) [ 39%]

... ```typescript function(e:Event) { this._castType++; this._castType %= 2; switch (this._castType) { case 0: (e.target as Button).label = "释放显存"; this.loadScene(); break; case 1: (e.target as Button).label = "加载场景"; if (this._scene)//_scene不为空表示场景已加载完成 this.gar...

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