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

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

1. null%20path是什么意思 [ 100%]

null%20path是什么意思 为什么总是报这个未找到,这个文件又是什么?可以跳过未找到资源直接进入游戏吗?我现在总是卡在进度条这里 附件 : --> 2017-09-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...

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

2. 资源内存释放问题 [ 86%]

...source = Laya.loader.getRes(dPath);                 // if (null != resource) {                 //  resource.dispose();                 // } else {                 //  console.error("resources is null,path:{0}", dPath);        ...

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

3. 绘制图形 · LayaAir3.0文档 · LAYABOX [ 85%]

...y: number, width: number, height: number, fillColor: any, lineColor: any = null, lineWidth: number = 1, percent?: boolean): DrawRectCmd { return this.addCmd(DrawRectCmd.create(x, y, width, height, fillColor, lineColor, lineWidth, percent)); } 代码示例: let sp = new Laya.Sprite(); //画矩形 s...

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

4. 内存释放问题 [ 83%]

...ed), Laya.Handler.create(this, ProgressPanel.showGameLoadingProgressPanel, null, false)); } /** * 显示一个模块面板 * 需要 资源altlas的名称和面板的类全名 * @static * @param {string[]} resAltlasName * @param {*} classFullName * * @memberof ResourcesModuleManager */ static showMod...

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

5. 2.3.0beta 各种bug [ 81%]

...(this._style = SpriteStyle.create());             if( this._style == null){                 this._style = SpriteStyle.create()             }             return this._style;         }     core.js vivo下getJSON报错兼容 static getJSON(key) {                 ...

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

6. Panel 的 滑动问题 [ 78%]

...(cell);        var offsetX = 0; var offsetY = 0;      if (offset != null) {           offsetX = offset[0]; offsetY = offset[1];       }           if (scale > 0)               cell.scale(scale);          var x = col * cellSize + offsetX;         var y = row ...

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

7. 新手!谁懂得把下面两个文件转成layaair可以运行的代码 [ 78%]

...   debug_txt.y = 20;             var tf:TextFormat = new TextFormat(null,12,0xFFFFFF);             debug_txt.defaultTextFormat = tf;             debug_txt.text = "start...";             stage.addChild(debug_txt);               if (ExternalInterface.available)      ...

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

8. List组件拖动浏览时item会出现重叠的现象 [ 74%]

...ID: number = 200; public static HEI: number = 20; // private _img: Image = null; private _lb:Label = null; constructor() { super(); this._lb = new Label(); this._lb.size(ListDataSourceItem.WID, ListDataSourceItem.HEI); this.addChild(this._lb); // this._img = new Image(); // this._img.size(ListDataSo...

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

9. 十几秒以后动画渲染时间变长,帧率变慢,是怎么回事? [ 74%]

...his._doll_area.h;  this.graphics.drawRect( 0, 0, this.width, this.height, null, "#ff0000", 1);  if( ! DollGunRole._ani_cached ) { DollGunRole._ani_cached = true; Laya.Animation.createFrames( ["ui/gun_box/plane.png"], "demon_fly" ); Laya.Animation.createFrames( ["ui/gun_box/img_target_blank.png", "...

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

10. 分享:IDE报错...Configure nextgenas.java, add to $PATH, or set $JAVA_HOME [ 73%]

...eference -> Settings 然后Search 一下 "nextgenas.java", 默认值是 null,你可以修改为自己喜欢的java路径,例如, "nextgenas.java":"/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/bin/java"  然后IDE会自动在 .laya目录下创建了settings.json文件,...

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