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

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

271. 在微信小游戏中,主域中显示开发域的list什么显示不全? [ 60%]

... rankList.array = data;     rankList.height = 800;     //rankList.width = 1100;     console.log('ranklist info xxxxxxxxxxxxxxxxxxxxx')     console.log(rankList.width);     console.log(rankList.height);             /*var rank:ListPage = new ListPage();     Laya.sta...

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

272. 3D场景中背景透明 [ 60%]

...参数,改如下代码 if (window["Laya3D"]) Laya3D.init(GameConfig.width, GameConfig.height, _config); 然后就Ok了   修改好的项目,已上传到附件里了,你也可以对照附件来看一下。 xiangmu2.rar 2020-10-22 0 0 分享 微博 QZONE 微信 程程 赞同来自:   图片...

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

273. laya2.0 截图功能分享,直接截取屏幕上所有对象 [ 60%]

...tatic tempTexture: Laya.Texture; /**截图 */ public static drawScreenshot(width, height, x, y) { if (!SwitchHelper.screenDraw) { return null; }  if (!this.tempTexture2D) { this.tempTexture2D = new Laya.Texture2D(system.width, system.height); } if (!this.tempTexture) { this.tempTexture = new Laya.T...

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

274. laya.ui.HBox [ 60%]

...d-only] 对象的显示高度(以像素单位)。 Component displayWidth : Number[read-only] 对象的显示宽度(以像素单位)。 Component filters : Array滤镜集合。可以设置多个滤镜组合。Sprite globalScaleX : Number[read-only] 获得相对于stage的全局X轴...

来源: laya_api 发布时间: 20170929

275. List属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 59%]

...temRender = Item; list.repeatX = 1; list.repeatY = 4; list.x = (Laya.stage.width - WID) / 2; list.y = (Laya.stage.height - HEI * list.repeatY) / 2; // 使用但隐藏滚动条 list.vScrollBarSkin = ""; list.selectEnable = true; list.selectHandler = new Handler(this, onSelect); list.renderHandler = n...

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

276. Laya 绑定显示内容到骨骼动画 [ 59%]

...Laya.stage.addChild(this.__bind);         this.__bind.x=Laya.stage.width*0.5;         this.__bind.y=Laya.stage.height*0.5;          this.__bind.load(GamePath.single.getSpinePath("tank_blue.sk"),Laya.Handler.create(this,this.testLoadComplete));   }      private __bind:...

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

277. 2.0label不改变文本内容,label颜色无法直接改变,1.0可以 [ 59%]

...     this.label.pos(500, 400);               this.label.width = 300; this.label.align = "center"; // this.label.stroke = 1; this.label.strokeColor = "#000000";             this.label.zOrder=9980             Laya.stage.addChild(this.label);          ...

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

278. 在开放数据域/子域里list滑动事件偏移,重设矩阵没有用 [ 59%]

...显示范围正常 case "resizeShared": { Laya.Browser.window.sharedCanvas.width = message.data.width; Laya.Browser.window.sharedCanvas.height = message.data.height; var tempMatrix = message.data.matrix; var matrix = new Laya.Matrix(); matrix.a = tempMatrix.a; matrix.b = tempMatrix.b; matrix.c = tem...

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

279. swf转换后,变成两张png,元件和背景分开了……元件都是位图格式, [ 58%]

...01-23 0 0 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 可以设置 width height 宽高 2018-01-23 0 0 分享 微博 QZONE 微信 什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 xiahaijiao 相关问题 iphoneX环境下新手引导的抠图透明区域黑色...

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

280. LayaAir和原生DOM交互(JavaScript-2D进阶篇(JS)-扩展模块) [ 58%]

...t.createElement("div"); this.qrcode = new Laya.Browser.window.QRCode(div,{ width:100, height:100 }); var url = "http://layabox.com/"; this.qrcode.makeCode(url); Laya.stage.once("click",this,clickHandler); this.qrcodeSp = new Laya.Sprite(); Laya.stage.addChild(this.qrcodeSp); function clickHandler(){...

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