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

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

131. laya动画问题 [ 67%]

...nimation对象如何设置动画在界面上的宽和高,类似于size、width、height的属性似乎都不生效,求助?谢谢 2018-01-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 qian 赞同来自: L...

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

132. HtmlDivElement 描边和下划线不能同时使用 [ 67%]

... layabox 赞同来自: 刚刚实测没问题,   代码:<div style='width:300px;height:100px;color:#ff0000;font-size:25px;font-family:SimSun;vertical-align:bottom;line-height:20px;'> <p><span style='font-weight:bold;stroke:3px; font:24px Arial' color='red' href='https://ask.layabo...

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

133. 为何对sp的监听事件没有反应呢? [ 66%]

...ffffff"); xxx.size(100, 100); xxx.mouseEnabled = true; xxx.x = (Laya.stage.width - xxx.width) / 2; xxx.y = (Laya.stage.height - xxx.height) / 2; Laya.stage.addChild(xxx); xxx.on(Laya.Event.CLICK, this, this.onXXX); private onXXX() {    console.debug("Hello"); } 2017-06-06 添加评论 免费帖 --...

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

134. label 和text 有啥区别 感觉差不多? [ 66%]

...网上的有点太简单。 Laya的Scene和View什么区别? Sprite中的width,height和size(width,height)感觉没作用啊 问题状态 最新活动: 2017-01-17 17:21 浏览: 4243 关注: 2 人

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

135. sprite点击事件 位置便宜 [ 66%]

... "#D2691E"); rect.size(200, 200); rect.pivot(100,100); rect.x = Laya.stage.width /2; rect.y = Laya.stage.height / 2; // let hitArea = new Laya.Rectangle(rect.x-100,rect.y-100,200,200); // rect.hitArea = hitArea; Laya.stage.addChild(rect); //增加鼠标事件 rect.on(Event.MOUSE_DOWN, this, mouseHan...

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

136. 真机测试时 有3d模型的界面尺寸就会错乱 [ 66%]

...: x2, y: y2 } = this._modelPnl.localToGlobal(new Laya.Point(this._modelPnl.width, this._modelPnl.height))         let w = x2 - x         let h = y2 - y         let bounds = new Laya.Rectangle(x, y, w, h)          let view = new ModelView(bounds, 130, 6, 65)       ...

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

137. 鼠标交互-双指缩放(多点触控) [ 66%]

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

138. this.bitmap.activeResource is not a function [ 66%]

...域 this._openZone = new Laya.Sprite(); } this._openZone.size(Laya.stage.width,Laya.stage.height); if(this._openZone.parent) return; console.log("打开开放域",Laya.Browser.onMiniGame) Laya.stage.addChild(this._openZone); this._openZone.x = vx; this._openZone.y = vy; if(Laya.Browser.onMiniGame){ ...

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

139. 高级应用-渲染纹理 [ 66%]

...er.pixelRatio, Laya.Browser.pixelRatio); changeActionButton.pos(Laya.stage.width / 2 - changeActionButton.width * Laya.Browser.pixelRatio / 2, Laya.stage.height - 100 * Laya.Browser.pixelRatio); changeActionButton.on(Laya.Event.CLICK, this, function () { layaPlane.getChildAt(0).meshRender.material.d...

来源: Laya_示例 发布时间: 20261113

140. laya.d3.resource.TextureCube [ 66%]

...BaseTexture  srcs : String[read-only] 文件路径全名。 TextureCube width : int[read-only] 获取宽度。 BaseTextureProtected Properties PropertyDefined By  _needReleaseAgain : Boolean = false异步加载完成后是否需要释放(有可能在恢复过程中,再次被释放,用此...

来源: laya_api 发布时间: 20170929