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

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

91. laya.d3.math.Viewport_API3.0 [ 90%]

...iewport Index Constructors constructor Properties height maxDepth minDepth width x y _tempViewport Methods cloneTo project set unprojectFromMat unprojectFromWVP Constructors constructor new Viewport(x?: number, y?: number, width?: number, height?: number): Viewport Defined in laya/d3/math/Viewport.t...

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

92. 为什么laya的Button渲染逻辑顺序是先渲染,再获取素材切片? [ 90%]

...his._skin); if (!img){ console.log("lose skin",this._skin); return; }; var width=img.sourceWidth; var height=img.sourceHeight / this._stateNum; img.$_GID || (img.$_GID=Utils.getGID()); var key=img.$_GID+"-"+this._stateNum; var clips=AutoBitmap.getCache(key); if (clips)this._sources=clips; else { thi...

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

93. Text.as中parseLines方法里的问题 [ 90%]

...到有错误日志: TypeError: undefined is not an object (evaluating 's.width') at line 3 in https://usr/game.js _parseLines@https://usr/game.js:3:256231 typeset@https://usr/game.js:3:255040 typeset@https://usr/game.js:48:211550 …………   查了下源码, 定位到Text.as中parseLines()...

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

94. 性能测试-卡通人物2 [ 90%]

...s.nameLabel.text = "Default"; this.nameLabel.fontSize = 13; this.nameLabel.width = Character.WIDTH; this.nameLabel.align = "center"; this.addChild(this.nameLabel); } setSpeed(value) { this.speed = value; } setName(value) { this.nameLabel.text = value; } update() { this.x += this.speed; if (this.x >=...

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

95. 鼠标交互-修正交互区域 [ 90%]

...Handler; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); this.setup(); } set...

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

96. 关于缓动函数from的一些问题记录 [ 90%]

...r letterText = new Laya.Text(); letterText.text ="hello world"; letterText.width = 400; letterText.height = 200; letterText.fontSize = 36; letterText.align = "center"; letterText.valign = "middle"; var offsetPos={offsetX:100,offsetY:100}; letterText.x = Laya.stage.width - letterText.width>>1 +...

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

97. 在父sprite中添加子sprite ,移动父Sprite 子sprite为什么不动? [ 90%]

...l.getBounds(); // 设置位置 this.pos(42,399); this.tower.pos((boundBall.width - boundTower.width)/2+data.tower[towerLel].c1, -data.tower[towerLel].h+data.tower[towerLel].c2); this.aeroboat.pos((boundBall.width - boundTower.width)/2+data.tower[towerLel].c1 - 2*boundAeroboat.width/3 ,-data.tower[to...

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

98. 我把scaleMode设置为SCALE_FIXED_WIDTH,也就是高度会变化,那么如果UI高度超出了,怎么实现滚动查看超出部分呢? [ 90%]

我把scaleMode设置为SCALE_FIXED_WIDTH,也就是高度会变化,那么如果UI高度超出了,怎么实现滚动查看超出部分呢? 2017-11-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 ymsdanda...

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

99. 分包后, 资源加载问题 [ 90%]

...eView(loadingjzaUI.uiView); } loadingjzaUI.uiView={"type":"View","props":{"width":192,"height":269},"compId":1,"child":[{"type":"Image","props":{"y":0,"x":0,"skin":"loading/dt_jza_loadtuan_zj.png"}},{"type":"Box","props":{"y":0,"x":0},"child":[{"type":"Image","props":{"y":0,"x":0,"width":192,"skin":...

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

100. HTMLDivElement 2.0 只有单行内容是 水平排版不居中 [ 90%]

...排版不居中 从0.1 版本升级到2.0后, HTMLDivElement 的 contextWidth没有组件的width大,没有相对组件居中。   异常情况 正常情况     代码如下   htmlDiv.width = 300; htmlDiv.height = 100; htmlDiv.style.color =  color; htmlDiv.style.leading = leading; htmlDiv.s...

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