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

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

331. localRotationEulerY旋转位置错误 [ 94%]

...直接使用页面定义的属性(通过IDE内var属性定义),比如this.tipLbll,this.scoreLbl,具有代码提示效果  * 建议:如果是页面级的逻辑,需要频繁访问页面内多个元素,使用继承式写法,如果是独立小模块,功能单一,建议用脚本...

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

332. 鼠标交互-修正交互区域 [ 94%]

...舞台 Laya.stage.name = "暗灰色舞台" Laya.stage.on(Event.MOUSE_DOWN, this, onDown); } function createCoralRect() { var coralRect = new Sprite(); coralRect.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height / 2, "#FF7F50"); //设置名称 coralRect.name = "珊瑚色容器"; coralRect.s...

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

333. 微信小游戏图片加载不出来 [ 94%]

...pe: Laya.Loader.ATLAS }, ]; Laya.loader.load(resArray, Laya.Handler.create(this, this.onLoaded)); Laya.loader.create("ui/BG/play-bg.png", Laya.Handler.create(this, this.onLoaded)); 在微信小游戏里面可以显示,但是实体机子上就无法显示"ui/BG/play-bg.png"这一张图,其他图...

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

334. 如果当作用域 this 被destroy ,那么this下绑定的事件需要提起清掉嘛 [ 94%]

如果当作用域 this 被destroy ,那么this下绑定的事件需要提起清掉嘛 2017-02-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_XS 赞同来自: 如果是组件精灵本身的事件的话...

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

335. UI-FontClip [ 94%]

...ya.stage.bgColor = "#232628"; Laya.loader.load(assets, Laya.Handler.create(this, this.ShowContent)); } ShowContent() { const FontClip = Laya.FontClip; var clipnum= new FontClip(assets[0]); var fontClip = new FontClip(assets[1]); var TestFontClip = new FontClip(assets[1]); var TestClipNum = new FontC...

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

336. Sprite-遮罩-放大镜 [ 94%]

....bgColor = "#232628"; Laya.loader.load("../../res/bg2.png", Handler.create(this, setup)); })(); function setup() { var bg = new Sprite(); bg.loadImage("../../res/bg2.png"); Laya.stage.addChild(bg); bg2 = new Sprite(); bg2.loadImage("../../res/bg2.png"); Laya.stage.addChild(bg2); bg2.scale(3, 3); //...

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

337. phasorSpriter3D 无法使用 [ 94%]

phasorSpriter3D 无法使用 Laya.timer.frameLoop(1, this, () => { this.phasorSpriter3D = new Laya.PhasorSpriter3D(); var _color = new Laya.Vector4(1, 0, 0, 1); var _corners = new Array<Laya.Vector3>(); _corners[0] = new Laya.Vector3(); _corners[1] = new Laya.Vector3(); _corners[2] = new L...

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

338. webgl遮罩的BUG [ 94%]

...遮罩想实现转圈进度条的效果                   this.mMask.graphics.clear();                 Laya.timer.loop(10,this,this.showMask);         public showMask():void         {             this.mMask.graphics.clear();          ...

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

339. popup设置了关闭效果后,窗口关闭但遮罩层没有关掉,请问如何处理 [ 94%]

...     //关闭效果     hideEffect(): void {         Laya.Tween.to(this,{y:Laya.stage.height,alpha:0},200,Laya.Ease.linearIn);              }   import { ui } from "./ui/layaMaxUI"; export default class ShopDialog extends ui.ShopDialogUI { constructor() { super(); this.popupEffect = L...

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

340. 源码List的一次代码错误 [ 94%]

...变量。__proto._createItems = function (startY, numX, numY) { var box = this._content; var cell = this._getOneCell(); var cellWidth = cell.width + this._spaceX; var cellHeight = cell.height + this._spaceY; if (this.cacheContent) { var cacheBox = new Box(); cacheBox.cacheAsBitmap = true; cacheBox.p...

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