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

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

271. 位图文本怎么做渐变消隐动画? [ 78%]

...       txt.pos(Laya.stage.width - txt.width >> 1, Laya.stage.height - txt.height >> 1);         txt.alpha = 0.1;         Laya.stage.addChild(txt);     } 我这测试是可以的 2019-05-15 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 ...

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

272. sound manager在MOUSE_OVER事件中无法播放 [ 78%]

...nvas             Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL);              Laya.stage.alignV = Stage.ALIGN_MIDDLE;             Laya.stage.alignH = Stage.ALIGN_CENTER;              Laya.stage.scaleMode = "showall";       ...

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

273. 画了一个封闭的曲线,获取鼠标点击处的像素,为何坐标对不上导致拿不到正确位置的Texture? [ 78%]

....mouseY); var tex:Texture = new Texture(hc); trace(tex.width + "---" + tex.height + "---" + getPixel(tex)); /*获取所画曲线鼠标点击处的像素,为何坐标对不上? 导致无法拿到正确位置的Texture*/ /*var spr:Sprite = new Sprite(); spr.graphics.drawTexture(tex); this.addChild...

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

274. 画布宽高的问题 [ 78%]

...0呢,舞台是有内容的啊 trace(Laya.stage.width + "-" + Laya.stage.height); trace(Browser.clientWidth + "--" + Browser.clientHeight); trace(Browser.width + "---" + Browser.height); trace(Browser.canvas.width + "----" + Browser.canvas.height); 以上是输出的代码语句 附件 : --> 2017-1...

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

275. 关于HitArea的问题 [ 78%]

...引导容器 maskArea.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000000") 重点来了,这里设置了可点击区域,范围也是全屏,给了舞台 hitArea.hit.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000000") 最后,在背景的click事件触发的nextStep...

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

276. 输入设备-指南针 [ 78%]

...adImage(compassImgPath); compassImg.pivot(compassImg.width / 2, compassImg.height / 2); compassImg.pos(Laya.stage.width / 2, 400); } function drawUI() { var canvas = new Sprite(); Laya.stage.addChild(canvas); canvas.graphics.drawLine(compassImg.x, 50, compassImg.x, 182, "#FFFFFF", 3); canvas.graphic...

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

277. 输入设备-指南针 [ 78%]

...adImage(compassImgPath); compassImg.pivot(compassImg.width / 2, compassImg.height / 2); compassImg.pos(Laya.stage.width / 2, 400); } createDirectionIndicator() { const Sprite = Laya.Sprite; directionIndicator = new Sprite(); Laya.stage.addChild(directionIndicator); directionIndicator.alpha = 0.8; di...

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

278. [Error] TypeError: null is not an object (evaluating 'this._style._tf') [ 78%]

...s.videoElement, this.reference, 0, 0, this.reference.width, this.reference.height) 第二: 加Event.RESIZE Laya.stage.on(Laya.Event.RESIZE, this, Laya.Utils.fitDOMElementInArea, [this.videoElement, this.reference, 0, 0, this.reference.width, this.reference.height]) 第三: 离开这个有videoEl...

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

279. 显示对象的mask缩放为0时遮罩效果不生效 [ 78%]

...nit(640, 1136); let testSp = new Laya.Sprite(); testSp.width = 200; testSp.height = 50; testSp.graphics.clear(); testSp.graphics.drawRect(0, 0, testSp.width, testSp.height,'#FF0000'); let tmpMask = new Laya.Sprite(); tmpMask.width = testSp.width; tmpMask.height = testSp.height; tmpMask.graphics.clea...

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

280. 鼠标 MOUSE_DOWN Event 回来的信息不符合 [ 78%]

...a.loader.getRes(picturePath); picturePath.pivot(texture.width / 2, texture.height / 2); picture.x = Laya.stage.width / 2; picture.y = Laya.stage.height / 2; picture.scale(cardScaleValue, cardScaleValue, true); picture.on(Event.MOUSE_DOWN, this, onStartPicture(Picture); } function onStartDragPicture(...

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