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

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

121. 其他引擎的Demo-Example_04 [ 84%]

...y = 1.0 + (Math.random() / 20), stars = [], w = Browser.width, h = Browser.height, slideX = w / 2, slideY = h / 2, speedInfo; class PIXI_Example_04 { constructor() { const WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler, Loader = Laya.Loader; // 不支持WebGL时自...

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

122. Button连续点击触发MOUSE_OUT事件问题 [ 83%]

...志如下:========================================= button width: 155, height: 155 mouse position, x: 374, y: 835 event type: click button width: 155, height: 155 mouse position, x: 374, y: 835 event type: mouseout button width: 155, height: 155 mouse position, x: 374, y: 835 event type: click but...

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

123. 滤镜-发光滤镜 [ 83%]

...// 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(apePath, Laya.Handler.create(this, t...

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

124. laya.map.TiledMap_API3.0 [ 83%]

...RENDERORDER_LEFTUP RENDERORDER_RIGHTDOWN RENDERORDER_RIGHTUP Accessors gridHeight gridWidth height numColumnsGrid numColumnsTile numRowsGrid numRowsTile orientation renderOrder scale tileHeight tileWidth width x y Methods changeViewPort changeViewPortBySize createMap destroy getLayerByIndex getLayer...

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

125. 创建动画时画布的widthheight与 实例化后的ani.size(width, height) 有什么区别 [ 83%]

创建动画时画布的widthheight与 实例化后的ani.size(width, height) 有什么区别 如题 2017-10-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Monica - 知识达人 赞同来自: 你是说在ID...

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

126. 请问graphics.drawTexture(texture)中如何增加一个matrix,只显示图中的一个圆形区域 [ 83%]

...; } } miniMap.src=url;     function circle_image(img, oldImgWidth, oldImgHeight) { var width, height, canvas, contex, circle; if (img.width > img.height) { width = img.height; height = img.height; } else { width = img.width; height = img.width; } canvas = document.createElement('canvas'); if (!...

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

127. 计时器-延迟执行 [ 83%]

...// 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.height, 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(); } setup() { const Event = ...

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

128. laya.display.cmd.DrawRectCmd [ 83%]

...lor : * 填充颜色,或者填充绘图的渐变对象。 DrawRectCmd  height : Number 矩形高度。 DrawRectCmd  lineColor : * (可选)边框颜色,或者填充绘图的渐变对象。 DrawRectCmd  lineWidth : Number (可选)边框宽度。 DrawRectCmd  width : Number 矩形...

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

129. 引擎示例中的新手引导自己写了一次,不知道为什么无法实现点击。 [ 83%]

...ndler.create(this, init)); function init(e) { var width = stage.width; var height = stage.height; var bg = new Sprite(); stage.addChild(bg); bg.texture = e; bg.on("click", this, onClick); var guideContainer = new Sprite(); stage.addChild(guideContainer); guideContainer.mouseEnabled = true; guideCont...

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

130. 龙骨动画-拖拽-点击区域HitArea设置问题 [ 83%]

...取动画所在的矩阵,然后设置skeleton的 hitArea为(-width, -height, width, height). 但是只有点击动画的右下角才能拖拽。期望:   龙骨动画的任意位置都可以拖拽。 附件一是 设置点击区域的部分代码; 附件二是 渲染出来的效果,目...

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