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

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

1091. Label属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 86%]

...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.setup(); } private setup(): void { this.createLabel("#FFFFFF", null).pos(30, 50); this.createLabel("#00FFFF", null).pos(290, 50); this.createLabel("#FFFF00", "#FFFFFF").pos(30, 100); this.createLabel("#000000", "#FFFFFF"...

来源: Laya2.0_文档 发布时间: 20210715

1092. 使用Laya.loader.load加载Laya.Loader.FONT位图字体文件时就会出现无限循环加载,一直到浏览器奔溃 [ 86%]

....stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628";   this.loadFont(); }   loadFont() { const  BitmapFont = Laya.BitmapFont, Handler = Laya.Handler;   Laya.loader.load([{     url: ['res/bitmapFont/test.fnt'],     type: Laya.Loader.FONT }], Handler.create(this, () => { ...

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

1093. 父物体旋转会导致子物体的世界坐标系不正确?(附demo) [ 86%]

...子不旋转的时候,我在代码中动下面圆盘的transform.positionthis.block = s.getChildByName("target_root").getChildByName("PendulumCircleTarget").getChildByName("MoveBlockPivot").getChildByName("TargetGuard") as Laya.Sprite3D; Laya.stage.on(Laya.Event.KEY_PRESS, this, this.KeyPress); th...

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

1094. 图片设置mask有毛边 [ 86%]

...w Laya.Image(); tmpMask.anchorX = 0.5; tmpMask.anchorY = 0.5; tmpMask.size(this.hexaSize.w, this.hexaSize.h); tmpMask.pos(v.x, v.y); tmpMask.loadImage(SKINS.HEXA_GRID_BG, 0, 0, this.hexaSize.w, this.hexaSize.h, Laya.Handler.create(this, function () { index++; if (index >= views.length) { img.mask...

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

1095. 粒子中引用的图片能合图吗 [ 86%]

....load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void {     Laya.loader.load("res/comp/dian.part", Handler.create(this, this.onPartLoaded)); } function onPartLoaded(data: any) {     let part = new Laya.Particle2D(data);    ...

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

1096. 手指点击list中的一个Item点击没反应 反复测试 发现 就是 手指稍微动一点就会点不住 手指 肯定没有鼠标精确度高 [ 86%]

...tage.mouseY;         var mouseX=Laya.stage.mouseX;         this._lastOffset=this.isVertical ? (mouseY-this._lastPoint.y):(mouseX-this._lastPoint.x);         if (this._clickOnly){             //TODO vison 2019/5/9             if (Math.abs(this._lastOffs...

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

1097. This image has just been released and needs to be restored now [ 86%]

This image has just been released and needs to be restored now 在native运行环境下,打开UI界面时加载的图片资源,在界面关闭时对其做clearTextureRes。 短时间内再次打开该界面就会出现这样的提示。请问这个提示是否有性能影响,该如何避免...

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

1098. 计时器-延迟调用 [ 86%]

...leMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); this.demonstrate(); } demonstrate() { for (let i = 0; i < 10; i++) { Laya.timer.callLater(this, this.onCallLater); } } onCallLater() { const Text = Laya.Text; console.log("onCallLater triggered"); let text = new Text(); text....

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

1099. LayaAir 2.0 微信排行榜 离屏画布不能直接附加到组件纹理上 [ 86%]

...enDataContext({ state: 'init', openId: GlobalData.getInstance().openId }); this.rank = new Laya.Sprite(); this.box_rank.addChild(this.rank); Laya.Browser.window.sharedCanvas.width = this.box_rank.width; Laya.Browser.window.sharedCanvas.height = this.box_rank.height; //alwaysChange = true不好用了...

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

1100. LayaAir和原生DOM交互(TypeScript-2D进阶篇(TS)-扩展模块) [ 86%]

...lor = "#ffcccc"; var div:any = Laya.Browser.document.createElement("div"); this.qrcode = new Laya.Browser.window.QRCode(div,{ width:100, height:100 }); var url:string = "http://layabox.com/"; this.qrcode.makeCode(url); Laya.stage.once("click",this,this.clickHandler); this.qrcodeSp = new Laya.Sprite(...

来源: Laya2.0_文档 发布时间: 20210715