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

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

111. 输入设备-指南针 [ 76%]

... compassImg.pivot(compassImg.width / 2, compassImg.height / 2); compassImg.pos(Laya.stage.width / 2, 400); } createDirectionIndicator() { const Sprite = Laya.Sprite; directionIndicator = new Sprite(); Laya.stage.addChild(directionIndicator); directionIndicator.alpha = 0.8; directionIndicator.graphic...

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

112. drawTextures BUG [ 75%]

...能正常了                 this._inner_drawTexture(tex, bmpid, pos[ipos++] + tx, pos[ipos++] + ty, tex.width, tex.height, null, null, 1.0, false);   附件 : --> 2022-06-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 ...

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

113. laya.display.cmd.DrawTexturesCmd [ 75%]

...据坐标集合绘制多个贴图 Public Properties PropertyDefined By  pos : Array 绘制次数和坐标。 DrawTexturesCmd  texture : Texture 纹理。 DrawTexturesCmdPublic Methods  MethodDefined By  recover():void 回收到对象池 DrawTexturesCmdPublic Constants ConstantDefined By  ...

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

114. Laya2.0绘制扇形遮罩,显示到部分角度时显示会有部分缺失(demo已上传) [ 75%]

...显示是正常的 let node: Laya.Image = new Laya.Image('c1.png'); node.pos(300, 300) Laya.stage.addChild(node); var sp: Laya.Sprite = new Laya.Sprite(); node.mask = sp; sp.pos(50, 50); var sp2: Laya.Sprite = new Laya.Sprite(); sp2.pos(300, 500); Laya.stage.addChild(sp2); let r: number = 0 Laya.tim...

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

115. 设置滤镜(JavaScript-LayaAir基础篇(JS)-位图) [ 75%]

...mage(apePath); apeshadow = new Sprite(); apeshadow.loadImage(apePath); ape.pos(100,50); apeGlow.pos(250,50); apeshadow.pos(400,50); Laya.stage.addChild(ape); Laya.stage.addChild(apeGlow); Laya.stage.addChild(apeshadow); } function filterGlow() { //创建一个发光滤镜 var glowFilter = new GlowFi...

来源: Laya2.0_文档 发布时间: 20210714

116. 2D寻路 · LayaAir3.3 · 引擎文档 · LAYABOX [ 75%]

...设置后不需要重新烘焙,参数如图2-15所示。 (图2-15) Position:设置动态区域的位置。 Scale:设置动态区域的缩放。 Rotation:设置动态区域的旋转。 AreaFlag:设置动态区域的区域标记。 Datas:设置动态区域形状的顶点位置和个数...

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

117. [LayaAir3]预制体创建问题。求解 [ 75%]

...rite,为啥提示我要用node类型接收,关键我用node接收下面pos又有报错。提示node类型没有pos属性。 附件 : --> 2024-05-19 1 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个回复 为什么被折...

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

118. UI-TextArea [ 75%]

...font = "Arial"; ta.fontSize = 18; ta.bold = true; ta.color = "#3d3d3d"; ta.pos(100, 15); ta.size(375, 355); ta.padding = "70,8,8,8"; var scaleFactor = Browser.pixelRatio; Laya.stage.addChild(ta); } })();module laya { import Stage = Laya.Stage; import TextArea = Laya.TextArea; import Browser = Laya.B...

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

119. 循环添加一组按钮事件无法正常使用 [ 75%]

...uixueying 赞同来自: anlijames 改下drawTexture针对坐标的设置用pos表示就好了,drawtexture下设置x,y改变的是纹理相对于b(父级)的位置改变,p.pos改变的是p容器的位置 b.graphics.drawTexture(Laya.loader.getRes(Res)); b.pos(tx-45,ty-45); b.size(92,96); b.n...

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

120. UI-ColorPicker [ 75%]

...olorPicker.selectedColor = "#ff0033"; colorPicker.skin = skin; colorPicker.pos(100, 100); colorPicker.changeHandler = new Handler(this, onChangeColor, [colorPicker]); Laya.stage.addChild(colorPicker); onChangeColor(colorPicker); } function onChangeColor(colorPicker) { console.log(colorPicker.selecte...

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