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

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

11. 绘画圆角矩形的工具,直接用,不用自己去算 [ 86%]

... height:Number, roundRadius:Number, fillColor:String, borderColor:String = null, borderWidth:Number = 0):DrawPathCmd { var paths:Array = []; paths.push(["moveTo", roundRadius, 0]); paths.push(["lineTo", width - roundRadius, 0]); paths.push(["arcTo", width, 0, width, roundRadius, roundRadius]); paths...

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

12. 绘制图形 · 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

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

...rivate function OnShow():void { // TODO Auto Generated method stub if(pop==null){ pop = new TestDialogUI(); pop.btn_close.clickHandler = new Handler(this,function(){pop.parent.removeChild(pop);}); } this.addChild(pop); } private function StartMove(len:int):void { trace("[TestView.StartMove]") // TOD...

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

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

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

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

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

...   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

16. 资源内存释放问题 [ 83%]

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

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

17. 【BUG】加载的url中有错误url时,laya偶现加载complete不回调 [ 82%]

...aya.loader.create(res3DArr, Laya.Handler.create(this, this.onRes3DLoaded), null);   结论:onLoad时checkNext触发endLoad,会重置customParse属性,onError的时候没有触发这个逻辑,导致复用这个loader时,customParse属性不正确。   修改:成功、失败都会走到o...

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

18. LayaAir 寻路库,寻路路径错误 [ 81%]

...------- public function Grid(width_or_matrix:*, height:int, matrix:Array = null) 虽然as3不支持多个构造函数,但是也没必要用这种解决方法吧,包括Grid构造函数初始化的代码简直绕晕了 附件 : --> Astar.zip 2016-12-21 添加评论 免费帖 --> 分享 微博 QZON...

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

19. 请教各位前辈们,AS的一些API好像layabox没有,求解决方法或者思路,比如 Point 的interpolate方法 具体问题内详 [ 80%]

...用view嵌套发布html5报"Uncaught TypeError:Cannot set property 'y' of null"的解决方案 问题状态 最新活动: 2016-06-27 15:31 浏览: 1892 关注: 2 人 cuixueying • 2016-06-27 21:05 @wuciqiang你好,咱们这个问题先做延迟处理吧,如果还有问题咱们及时沟通!

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

20. Spine动画资源加载时不能同时使用"版本管理"和"URL.basePath" [ 80%]

...BufferUrl.slice(0,this._skBufferUrl.lastIndexOf("/"))+"/"); this.parseData(null,tSkBuffer); } __proto.parseData=function(texture,skeletonData,playbackRate){ (playbackRate===void 0)&& (playbackRate=30); if(!this._path&&this.url){ //MODIFIED:使用formatPath进行路径过滤 this._pat...

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