大约有 4,034 项符合查询结果, 库内数据总量为 30,906 项。 (搜索耗时: 0.0076 秒)
Laya_社区(3264) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_文档(107) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...dth, height, x, y) { if (!SwitchHelper.screenDraw) { return null; } if (!this.tempTexture2D) { this.tempTexture2D = new Laya.Texture2D(system.width, system.height); } if (!this.tempTexture) { this.tempTexture = new Laya.Texture(this.tempTexture2D); } let cans = document.getElementById("layaCanvas"...
来源: Laya_社区 发布时间: 20191016
... __proto.loop=function(){ var point=this._parent.getMousePoint(); var mouseX=point.x; var mouseY=point.y; var offsetX=mouseX-this._lastX; var offsetY=mouseY-this._la...
来源: Laya_社区 发布时间: 20180720
...te on2DComplete(): void { Laya.loader.load("zxc.json", Laya.Handler.create(this,this. onLoadConfigComplete),null,Laya.Loader.JSON); } wayPoints:JSON; private onLoadConfigComplete(): void { this.wayPoints = Laya.loader.getRes("zxc.json") as JSON; console.log(this.wayPoints.name); //这里会报name ...
来源: Laya_社区 发布时间: 20180119
使用bind移除事件报错 在侦听事件中添加了bind,如下: this.parent["timer1"].addEventListener(TimerEvent.TIMER,bind(this,this.timer))? 2015-11-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 c...
来源: Laya_社区 发布时间: 20151110
...ginGame extends Laya.Scene { constructor() { super(); LoginGame.instance = this; Laya.MouseManager.multiTouchEnabled = false; this.loadScene("LoginGame.scene"); } onEnable() { SoundManager.playMusic("audio/梅林茂 - 静かな古都.mp3", 0); this.login_game_button.on(Laya.Event.CLICK, this,this.on...
来源: Laya_社区 发布时间: 20181124
...话框var testUI=(function(_super){ function testUI(){ testUI.__super.call(this); } CLASS$(testUI,'ui.testUI',_super); var __proto__=testUI.prototype; __proto__.createChildren=function(){ laya.ui.Component.prototype.createChildren.call(this); this.createView(testUI.uiView); } testUI.uiView={"type":"...
来源: Laya_社区 发布时间: 20180325
... 是要模仿镜头移动功能吗,这样可以 onAwake() { const self = this; self.gameObj = self.owner as Laya.Sprite; Laya.Physics.I.worldRoot = self.gameObj; this.cameraRect = new Laya.Rectangle(0, 0, 2000, 1000); this.gameObj.scrollRect = this.cameraRect; } onUpdate() { this.cameraRect.x = th...
来源: Laya_社区 发布时间: 20190214
...lters.GlowFilter("#00CCFF", 10, 0, 0); //设置滤镜集合为发光滤镜 this.cutLayer.filters = [glowFilter]; 测试了一下 最新的引擎版本 给一个sprite对象版定一个filter 安卓木有办法显示 上面的cutLayer 是一个sprite对象 我会通过手指的移动去绘制线条...
来源: Laya_社区 发布时间: 20180411
...wFoods():void{ foodSprite = new Sprite(); Laya.stage.addChild(foodSprite); this.index = 0; foodsList = new Array(); foodsList.push(new Food("菜品1", "1", 0)); foodsList.push(new Food("菜品2", "2", 1)); foodsList.push(new Food("菜品3", "3", 2)); foodsList.push(new Food("菜品4", "4", 3)); food...
来源: Laya_社区 发布时间: 20180405
...iframe预览时不显示网页,编辑器和开发者工具上没问题 this.iframe = Laya.Browser.document.createElement("iframe"); this.iframe.style.position ="absolute";//设置布局定位。这个不能少。 this.iframe.style.zIndex = 1000;//设置层级 ...
来源: Laya_社区 发布时间: 20200514