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

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

151. bundle.js里为什么有些是_this,有些是this [ 96%]

bundle.js里为什么有些是_this,有些是this 编译后,自定义的this.mySprite对象,在bundle.js文件里会出现 _this.mySprite 和 this.mySprite 两种,后者报错 附件 : --> 2018-11-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: ...

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

152. Spine动画最后一帧无法正常显示 [ 96%]

...后发现在Skeleton::_update方法中的以下语句:var tGraphics; if (this._aniMode == 0) { tGraphics = this._templet.getGrahicsDataWithCache(this._aniClipIndex, this._clipIndex) || this._createGraphics(); if (tGraphics && this.graphics != tGraphics) { this.graphics = tGraphics; } }决...

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

153. 半透明的矩形鼠标穿透问题 [ 96%]

半透明的矩形鼠标穿透问题 //画矩形 this.addLabel = new Sprite(); this.addLabel.graphics.drawRect(0, 730, 1440, 170, "#000000"); this.addLabel.alpha = 0.6; this.addLabel.mousethrough = false; this.addLabel.mouseEnabled = true; sp.addChild(this.addLabel); 仍然能够点击下面的按...

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

154. 输入设备-摇一摇 [ 96%]

...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.showShakePic(); this.showConsoleText(); this.startShake(); } showShakePic() { const Sprite = Laya.Sprite; let shakePic = new Sprite(); shakePic.loadImage("res/inputDevice/shake.png"); Laya.stage.addChild(shakePic); } sho...

来源: Laya2.0_示例 发布时间: 20251209

155. 动画不显示 [ 96%]

...sh(m_MapImgUrl);             Laya.loader.load(urls,Handler.create(this,loadResourceComplated));         }         private function loadResourceComplated(e:*=null):void         {             //开始异步加载资源             Laya.loader.load(m_MapImgU...

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

156. List翻页效果 [ 96%]

...x: number = -1; private m_downValue: number = -1; constructor() { super(); this.list_rule.hScrollBarSkin = ""; this.list_rule.renderHandler = new Laya.Handler(this, this.updateItem); this.list_rule.scrollBar.changeHandler = new Laya.Handler(this, this.onChange) this.list_rule.mouseHandler = new Laya...

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

157. 性能测试-卡通人物2 [ 96%]

...Animation; // Class Character function Character(images) { Character.super(this); Character.WIDTH = 110; Character.HEIGHT = 110; var bloodBar; var animation; var nameLabel; Character.prototype.createAnimation = function(images) { animation = new Animation(); animation.loadImages(images); animation.i...

来源: Laya_示例 发布时间: 20251209

158. Cannot read property 'toDefault' of undefined报错是什么原因 [ 96%]

...cene", Laya.Scene); function MousePickingScene() { MousePickingScene.super(this); this.camera = new Laya.Camera(0,0.1,100); this.addChild(this.camera); this.camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; this.skyBox = new Laya.SkyBox(); this.camera.sky = this.skyBox; this.skyBox.textureCube = Lay...

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

159. 文本-滚动文本 [ 96%]

... txt.color = "#ffffff"; Laya.stage.addChild(txt); txt.on(Event.MOUSE_DOWN, this, startScrollText); } /* 开始滚动文本 */ function startScrollText(e) { prevX = txt.mouseX; prevY = txt.mouseY; Laya.stage.on(Event.MOUSE_MOVE, this, scrollText); Laya.stage.on(Event.MOUSE_UP, this, finishScrollText)...

来源: Laya_示例 发布时间: 20251209

160. IDE-显示IDE创建的界面 [ 96%]

... Laya.Event; // 创建TestPageUI的子类 function TestUI() { TestUI.super(this); //btn是编辑器界面设定的,代码里面能直接使用,并且有代码提示 this.btn.on(Event.CLICK, this, onBtnClick); this.btn2.on(Event.CLICK, this, onBtn2Click); function onBtnClick() { //手动控制组...

来源: Laya_示例 发布时间: 20251209