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

大约有 4,034 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0084 秒)

151. 半透明的矩形鼠标穿透问题 [ 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

152. 输入设备-摇一摇 [ 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_示例 发布时间: 20250223

153. 动画不显示 [ 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

154. 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

155. 性能测试-卡通人物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_示例 发布时间: 20250223

156. 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

157. 文本-滚动文本 [ 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_示例 发布时间: 20250223

158. 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_示例 发布时间: 20250223

159. 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() { //手动控制组...

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

160. 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_社区 发布时间: 20181112