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

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

491. 位图字体预加载 [ 57%]

...   bitmapFont.loadFont("../../../../res/bitmapFont/test.fnt",new Handler(this,onFontLoaded, [bitmapFont]));         }         private function onFontLoaded(bitmapFont:BitmapFont):void         {             bitmapFont.setSpaceWidth(10);             Text.registerB...

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

492. dialog黑色遮罩删除不了 [ 57%]

...ar isModalTmp = dialog.isModal;         // dialog.isModal && this._checkMask();         dialog.closeHandler && dialog.closeHandler.runWith(dialog.closeType);         if (dialog.autoDestroyAtClosed)dialog.destroy();         else dialog.removeSelf();       ...

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

493. Node类中getChildByName没有null容错 [ 57%]

Node类中getChildByName没有null容错 laya.core Node类,这里的this._childs可能为null。 这里希望框架做一下容错! 附件 : --> 2017-03-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixu...

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

494. 有关PathFinding.js [ 57%]

..., 0], ]; var grid = PF.core.Grid(matrix);   然后就报错了 TypeError: this._buildNodes is not a function at Object.Grid (file:///D:/Layabox/PathFinding/bin/libs/laya.pathfinding.js:41:19) at LayaAir3D.pathFindingTest (file:///D:/Layabox/PathFinding/bin/js/LayaAir3D.js:39:33) at new LayaAir3D (f...

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

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

...ublic function TestView() { super(); _path.pivot(0,0); _path.pos(a.x,a.y); this.addChild(_path); _path.rotation = Math.atan2(b.y - a.y, b.x - a.x) / Math.PI * 180; _path2.rotation = Math.atan2(b.y - a.y+300, b.x - a.x) / Math.PI * 180; _path2.pos(a.x,a.y); this.addChild(_path2); var len:int = Math.f...

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

496. laya换行符 [ 56%]

...720 关注: 2 人 dandanqin • 2018-01-24 17:27 for(var i=0;i<5;i++) { this._basicAttr.text +="换行\n" }我用了一个for循环来测试换行,实际应该有五行,但是并没有实现我想要的效果,他是到达了文本规定的宽度后换行 qian • 2018-01-24 17:31 ...

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

497. 微信小游戏加载资源问题 [ 56%]

...annel extends Laya.SoundChannel { constructor(audio, miniSound) { super(); this._audio = audio; this._miniSound = miniSound; this._onEnd = MiniSoundChannel.bindToThis(this.__onEnd, this); audio.onEnded(this._onEnd); } static bindToThis(fun, scope) { var rst = fun; rst = fun.bind(scope); return rst; ...

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

498. 使用3D UI · LayaAir3.3 · 引擎文档 · LAYABOX [ 56%]

...@regClass() export class BloodBar extends BloodBarBase { onAwake(): void { this.bar.value = 1; this.value.visible = false; Laya.stage.on(Laya.Event.CLICK, this, this.onHurt); } onHurt(): void { this.bar.value = this.bar.value - 0.9; this.value.y = 35; this.value.visible = true; Main.instance.animato...

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

499. getItemByClass(sign:String, cls:Class):*,怎么给Class的构造函数传参? [ 56%]

...的回调函数 Laya.loader.create 进度回调函数执行两次 Warning!,this class[MiniAdpter] already exist: Object {init: } js调as函数 undifine 怎么停止正在运行Laya.timer.frameLoop的回调函数 load 加载完图集 回调函数可以传形参吗? 网页跳转函数 MOUSE_OVER注...

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

500. Laya2.4版本,场景为内嵌时layaMaxUI类中没有声明场景中的Button等控件? [ 56%]

...}; constructor(){ super()} createChildren():void { super.createChildren(); this.createView(GameSceneuiUI.uiView); } } REG("ui.GameSceneuiUI",GameSceneuiUI); export class GameViewUI extends Laya.View { public static uiView:any ={"type":"View","props":{"width":720,"height":1280},"compId":2,"child":[{"...

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