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

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

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

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

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

334. webgl遮罩的BUG [ 94%]

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

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

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

336. 源码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

337. 关于下拉列表的选择触发 [ 94%]

关于下拉列表的选择触发 this.small_map.selectHandler = new Laya.Handler(this, onSelect_small); this.big_map.selectHandler = new Laya.Handler(this, onSelect_big); function onSelect_small(e) { Laya.big_switch = 0 Laya.maptype = "small" this.now_map.text = "当前地图:" + this.small_map....

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

338. 我想把flex项目转为laya ts项目,转换过程 mx.containers.Canvas报错 [ 94%]

...abled="true"                          mouseOver="/*trace(this);*/currentCabinet=this;"                           >                     </mx:Canvas>                                  <mx:Canvas x="4" y="578" width=...

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

339. ReferenceError: Loading_fly is not defined [ 94%]

...ading_fly = function (_super) { function Loading_fly() { Loading_fly.super(this); this.onPlay(); } Laya.class(Loading_fly, "Loading_fly", _super) var _proto = Loading_fly.prototype; _proto.onPlay = function () { UIConfig.popupBgAlpha = 0.85; UIConfig.closeDialogOnSide = false; this.diango = new Laya...

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

340. timer.once(100,this,this.play,[参数名])在play方法中怎么获取参数名得值! [ 94%]

timer.once(100,this,this.play,[参数名])在play方法中怎么获取参数名得值! 例如:   var b:number = 1; Laya.timer.once(100,this,this.play,[b]);   在play():void{   }方法中如何获取b的值!!! 2018-03-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...

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