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

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

51. 我打印laya.stage时看到有个_width 但是我打印laya.stage._width 得到值和之前看到的不一样 [ 83%]

我打印laya.stage时看到有个_width 但是我打印laya.stage._width 得到值和之前看到的不一样 2018-06-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: 有例子或者dem...

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

52. 关于微信小游戏的开放数据域,请问如何将开放数据域的canvas绘制到layaair的image上? [ 83%]

...018-05-03 0 0 分享 微博 QZONE 微信 。。 赞同来自: sharedCanvas.width = width*pixelRatio; sharedCanvas.height = height*pixelRatio; sendMessage({ mission: Mission.RESIZE, width:width, height: height });  wx.onTouchStart(onTouchStart); wx.onTouchMove(onTouchMove); wx.onTouchEnd(onTouchEnd)...

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

53. laya.device.media.Video [ 83%]

...mouseThrough属性。 影响对象鼠标事件响应区域的属性width、height、hitArea,优先级顺序:hitArea(type:HitArea)>hitArea(type:Rectangle)>width/height。 Sprite mouseX : Number[read-only] 返回鼠标在此对象坐标系上的 X 轴坐标信息。 Sprite mouseY ...

来源: laya_api 发布时间: 20170929

54. Sprite-缓存静态图像 [ 83%]

...andom() * 360; text.color = "#CCCCCC"; text.x = Math.random() * Laya.stage.width; text.y = Math.random() * Laya.stage.height; textBox.addChild(text); } //缓存静态图像 textBox.cacheAsBitmap = true; Laya.stage.addChild(textBox); } })();module laya { import Sprite = Laya.Sprite; import Stage =...

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

55. laya.device.media.Video [ 83%]

...read-only] 对象的显示高度(以像素单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以像素单位)。 Sprite drawCallOptimize : BooleanSprite  duration : Number[read-only] 获取视频长度(秒)。ready事件触发后可用。 Video  ended : ...

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

56. 不规则热区的实现 [ 83%]

...t:Texture = datas; m_hitAreaSprite.graphics.drawRect(t.offsetX,t.offsetY,t.width, t.height,'#FFFFFF'); m_hitAreaSprite.width = t.width; m_hitAreaSprite.height = t.height; } } 理论上些类是可以有响应的,何他没有反应,是那里写错了吗? 2016-11-16 0 2 分享 微博 QZONE ...

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

57. laya.ui.Panel [ 83%]

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

来源: laya_api 发布时间: 20170929

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

...: 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

59. laya.html.dom.HTMLIframeElement_API3.0 [ 83%]

... activeInHierarchy alpha blendMode cacheAs components contextHeight contextWidth customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics height hideFlags hitArea href innerHTML is3D mask mouseEnabled mouseX m...

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

60. Sprite-缓存静态图像 [ 83%]

...a.Stage; // 不支持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"; Laya.Stat.show(); this.cacheText...

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