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

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

1. sprite之bug [ 100%]

...;    if(!style)  {  trace("----sprite--")  return;  }    if(!style._tf)  {  trace("----sprite--_tf is null--");  return;  }    if (style._tf.scaleX !== value) {  style.setScaleX(value);  _changeType |= CHG_VIEW;  _tfChanged = true;  conchModel && conchModel.scale(value, sty...

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

2. 帮忙看看Texture类getPixels内存泄漏的问题。 [ 96%]

... laya.utils.Stat; import laya.webgl.WebGL; public class Main { private var _tex:Texture; private var _htmlCanvas:HTMLCanvas; private var _colorSpr:Sprite; private var _colorTex:Texture; private var _initPixelCount:int; public function Main() { Laya.init(1024, 768, WebGL); Stat.show(0, 0); Laya.stage...

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

3. 多次加载一个页面出现_$P为null的情况 [ 94%]

多次加载一个页面出现_$P为null的情况 做的一个棋牌游戏,使用了socket.io,进入页面的时候代码如下: _proto.onlineClick = function(){ var gold = StorageHelper.getUserGold(); if(gold > 500){ Online.joinGame().then(function(data){ console.log(data); StorageHelper.se...

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

4. layaair2.0默认字体设置无效 [ 94%]

...到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: /**          * <p>文本的字体名称,以字符串形式表示。</p>          * <p>默认值为:"Arial",可以通过Text.defaultFont设置默认字体。</p&g...

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

5. 提示LAYA核心库中找不到 Laya.__awaiter函数 [ 94%]

提示LAYA核心库中找不到 Laya.__awaiter函数 全文搜索找不到 Laya.__awaiter函数,是不是少定义这个函数了,官方demo:https://layaair.ldc.layabox.co ... rDemo也报这个错 附件 : --> 2022-11-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...

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

6. 对AS3的NetConnection.connect(p:string);方法的支持貌似有BUG [ 93%]

...支持,不过开发者可以通过调用js原生的方法实现,使用__JS__辅助开发。谢谢! 请参考:__JS__()的用法 2016-07-15 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 infocat 相关问题 两个对象new了一...

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

7. ts继承后,代码压缩的问题 [ 92%]

...用uglify-js对代码进行压缩有,会有很多重复的一下语句 var __extends = this && this.__extends || function() { var extendStatics = Object.setPrototypeOf || { __proto__: [] }instanceof Array && function(d, b) { d.__proto__ = b } || function(d, b) { for (var p in b) if (...

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

8. ScrollRect设置会引起其他的UI资源无法正在显示 [ 91%]

... ui.TestViewUI; public class TestView extends TestViewUI { private var PATH_LEN:Number = 120.0; private var speed:Number = 15; private var _path:Sprite = new Sprite(); private var arr:Array = []; public function TestView() { super(); _path.pivot(0,0); _path.pos(a.x,a.y); this.addChild(_path); _path....

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

9. Node.prototype.removeChildren移除计数有问题 [ 91%]

...存在: removeChildren(beginIndex = 0, endIndex = 0x7fffffff) { if (this._children && this._children.length > 0) { var childs = this._children; if (beginIndex === 0 && endIndex >= childs.length - 1) { var arr = childs; this._children = Node.ARRAY_EMPTY; } else { arr = childs....

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

10. 路径显示会添加DrawCall,每增加一条路径都会添加,有什么办法降DrawCall [ 90%]

... ui.TestViewUI; public class TestView extends TestViewUI { private var PATH_LEN:Number = 120.0; private var speed:Number = 15; private var _path:Sprite = new Sprite(); private var _path2:Sprite = new Sprite(); private var arr:Array = ; private var arr2:Array = ; private var pop:TestDialogUI; public ...

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