大约有 573 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0045 秒)
Laya_社区(347) Laya3.0_api(60) Laya2.0_文档(52) Laya_示例(41) Laya2.0_示例(40) Laya3.0_文档(29) laya_api(2) Laya2.0_api(2)
... bitmapFont.loadFont("../../../../res/bitmapFont/test.fnt",new Handler(this,onFontLoaded, [bitmapFont])); } private function onFontLoaded(bitmapFont:BitmapFont):void { bitmapFont.setSpaceWidth(10); Text.registerB...
来源: Laya_社区 发布时间: 20170629
...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
Node类中getChildByName没有null容错 laya.core Node类,这里的this._childs可能为null。 这里希望框架做一下容错! 附件 : --> 2017-03-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixu...
来源: Laya_社区 发布时间: 20170323
..., 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
...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
...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
...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
...@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
...的回调函数 Laya.loader.create 进度回调函数执行两次 Warning!,this class[MiniAdpter] already exist: Object {init: } js调as函数 undifine 怎么停止正在运行Laya.timer.frameLoop的回调函数 load 加载完图集 回调函数可以传形参吗? 网页跳转函数 MOUSE_OVER注...
来源: Laya_社区 发布时间: 20180913
...}; 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