大约有 1,174 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0067 秒)
Laya_社区(878) Laya3.0_api(80) Laya2.0_文档(72) Laya_示例(52) Laya2.0_示例(48) Laya3.0_文档(40) laya_api(2) Laya2.0_api(2)
...int:*; private var engine:*; /***/ public function Retitution() { super(); this.width = stageWidth; this.height = stageHeight; setup(); } private function setup():void { initMatter(); initWorld(); Laya.stage.on("resize",this,onResize); } private function initMatter():void { var gameWorld:Sprite = ne...
来源: Laya_社区 发布时间: 20171214
...; constructor() { super(); } //组件被启用后执行 onEnable(): void { this._level = Math.round(Math.random() * 5) + 1; this._text = this.owner.getChildByName("levelTxt") as Laya.Text; this._text.text = this._level + ""; } //每帧更新时执行 onUpdate(): void { //让持续盒子旋转 (this....
来源: Laya3.0_文档 发布时间: 20251010
...后,运行就不显示。 必须手动在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