大约有 1,172 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0048 秒)
Laya_社区(877) Laya3.0_api(80) Laya2.0_文档(72) Laya_示例(52) Laya2.0_示例(48) Laya3.0_文档(39) laya_api(2) Laya2.0_api(2)
...后,运行就不显示。 必须手动在View的runtime脚本中加一个this.loadScene("aaa.scene")才能正常显示。 但是我看API中说loadScene是为了兼容老项目用的,新项目用Laya.Scene.load。 包括官方文档也是这么写的: 然而我无论是在主场景的...
来源: Laya_社区 发布时间: 20190911
...ont(); timerFont.loadFont('res/timerfont.fnt', Laya.Handler.create(this, () => { Laya.Text.registerBitmapFont('Name', timerFont); Laya.loader.load("res/atlas/comp.atlas", Handler.create(null, onLoaded)); })); } function onLoaded(): void { ...
来源: Laya_社区 发布时间: 20180509
...消息通信,当网断的时候是不是会触发 socket.on(Event.CLOSE, this, onSocketClose);在onSocketClose函数里处理执行逻辑对吧? 问题二:因为对H5不是很了解,想问问有没有像APP一样,直接关闭的语句,比如NativeApplication.nativeApplication.exit(); 现...
来源: Laya_社区 发布时间: 20170206
... ]; //绘制圆角矩形 this.container.graphics.drawPath(100, 100, path, {fillStyle: "#ff0000"},{"strokeStyle":"#ffffff","lineWidth":"1","lineJoin":"miter","lineCap":"round","miterLimit":1}); 附件 : --> 2017-03-20 添加评论 免费帖 --> 分...
来源: Laya_社区 发布时间: 20170320
...cs = graphics2; Laya.stage.addChild(sprite2); Laya.stage.on(Event.MOUSE_UP,this,mouseUP); } public var flagCircle:Graphics = new Graphics(); public var flag:Sprite = new Sprite(); //让直线在圆内旋转 public function mouseUP():void{ var point:Point = sprite.globalToLocal(new Point(Laya.stage.m...
来源: Laya_社区 发布时间: 20190515
...0); Laya.stage.bgColor="#EEFFCC"; Laya.loader.load("hu.ttf",Handler.create(this,onLoaded),null,Loader.BUFFER); } private function onLoaded():void { var arr:ArrayBuffer=Laya.loader.getRes("hu.ttf"); if(Browser.window.conch) { Browser.window.conch.setFontFaceFromBuffer("hu",arr); } var text:Text=new T...
来源: Laya_社区 发布时间: 20161219
...reTest/.laya/compile.js compile Debugger listening on port 48982. Warning: This is an experimental feature and could change at any time. laya_ide_time.require.single.gulp-util: 7.87ms gulp.js:8 laya_ide_time.require.single.pretty-hrtime: 2.2ms gulp.js:8 laya_ide_time.require.single.chalk: 10.4ms gul...
来源: Laya_社区 发布时间: 20200607
...word3"/> <meta http-equiv="description" content="This is my page"/> </head> <body> 访问失败,请返回重试。 </body> </html>' 我打的本地资源包,也会出现这个问题,可以帮我分析下原因吗? 本地资源包,...
来源: Laya_社区 发布时间: 20200810
...*****260 赞同来自: 发现是 第二个txt的 txt.on(Event.MOUSE_DOWN, this, startScrollText); 这个函数监听不到 屏幕外的txt监听不到? 必须移动到屏幕里面才能加这个代码? 移动到里面也再加也不行啊 在编辑器里做过ui 然后 放2个text 一个...
来源: Laya_社区 发布时间: 20170429
...tr) > -1 ? str : '='; tStr = StringTool$1.trimSide(tStr.split(str)[0]); this.importDic[tStr] = true; }当然也可以把CodeManager.parseTsImport的函数体也改了,虽然说用不到。改完后保存,重启IDE即可实现功能;如果修改之前已经导出过一次,需要清理一...
来源: Laya_社区 发布时间: 20200727