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

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

361. ???????? 啥加一个 Text,drawcall 暴增? [ 71%]

...ngth = String(price).length; var w = length * 16 + 15 + 40; fish.scoreItem.width = w; fish.scoreItem.x = fish.getBox().x - fish.scoreItem.width/2; fish.scoreItem.y = fish.getBox().y - fish.scoreItem.height; this.scoreBox.addChild(fish.scoreItem); fish.scoreGold = new Laya.Image(); fish.scoreGold.ski...

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

362. 水平滚动条组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 71%]

...his.hscroll.skin = "atlas/comp/hscroll.png";//滚动条皮肤 this.hscroll.width = 300;//滚动条的宽度 this.hscroll.pos(300, 300);//滚动条的位置 this.hscroll.min = 0;//滑块的最小滚动位置 this.hscroll.max = 10;//滑块的最大滚动位置 this.hscroll.scrollSize = 1;//点击按...

来源: Laya3.0_文档 发布时间: 20251010

363. laya.media.VideoTexture_API3.0 [ 71%]

...preload readyState referenceCount seekable seeking source videoHeight videoWidth volume width wrapModeU wrapModeV wrapModeW cpuMemory gpuMemory Methods _addReference _clearReference _getSource _removeReference _setCPUMemory _setCreateURL _setGPUMemory canPlayType destroy event gpuCompressFormat hasL...

来源: Laya3.0_api 发布时间: 20231115

364. laya.ui.ScrollBar [ 71%]

...d-only] 对象的显示高度(以像素单位)。 Component displayWidth : Number[read-only] 对象的显示宽度(以像素单位)。 Component  downButton : Button下按钮 ScrollBar  elasticBackTime : Number = 500橡皮筋回弹时间,单位毫秒。ScrollBar  elasticDis...

来源: laya_api 发布时间: 20170929

365. 分享:如何用代码创建自定义Tab组件 [ 71%]

...blic class LayaAirDemo { public function LayaAirDemo() { Laya.init(Browser.width,Browser.height); Laya.stage.bgColor="#EEFFCC"; //预加载button的资源,用于tab的项皮肤 Laya.loader.load("button-4.png",Handler.create(this,onLoaded)); } private function onLoaded():void { //添加tab容器 va...

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

366. laya.ui.UIGroup [ 71%]

...read-only] 对象的显示高度(以像素单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以像素单位)。 Sprite drawCallOptimize : BooleanSprite filters : Array滤镜集合。可以设置多个滤镜组合。Sprite globalRotation : Number[read-only] ...

来源: Laya2.0_api 发布时间: 20190513

367. scaleMode bug [ 71%]

scaleMode bug SCALE_FIXED_WIDTH,理论上舞台高度应该变化啊,啥舞台高度还是设计高度。但是内容的y轴按设计高度来,就不行。。 2018-03-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提...

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

368. [LayaAirIDE3]3.3.1 UI点击区域异常,mouseThrough属性失效 [ 71%]

...the target object or misses all objects. * When not penetrable, the node's width and height define the mouse collision area (a non-penetrable rectangular area). If the rectangular collision area does not meet the requirements, you can use the drawing area of the hit area as the collision area. The h...

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

369. laya.ui.ScrollBar [ 71%]

...read-only] 对象的显示高度(以像素单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以像素单位)。 Sprite  downButton : Button下按钮 ScrollBar drawCallOptimize : BooleanSprite  elasticBackTime : Number = 500橡皮筋回弹时间,单位...

来源: Laya2.0_api 发布时间: 20190513

370. 【简单跑酷--JS版】---Lv.2 类之间的引用以及背景滚动实现 [ 71%]

...() { /** * 背景类 * */ function Background(){ //图片的宽度 this.BG_WIDTH = 1600; //记录当前移动的值 this.moveX = 0; //定义背景1 this.bg1 = null; //定义背景2 this.bg2 = null; //草堆 this.grass = null; Background.__super.call(this); this.init(); } //Background 是一个显示...

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