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

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

91. Byte二进制读写(TypeScript-LayaAir基础篇(TS)-数据与通信) [ 76%]

...字节开始读入byte中。省略其中的浮点数20.0和整数16 byte.pos = 0;// console.log(byte.readUTFString())//从byte中读出字符串。 ``` - 读取数据 **getByte**():number在字节流中读一个字节。 **getInt16**():number在当前字节偏移量位置处读取 Int16 值。 **get...

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

92. [LayaAirIDE3]2d相机打包后问题 [ 76%]

....mapMinX}`;         minXLabel.color = "#FFFFFF";         minXLabel.pos(this.playerScript.mapMinX, this.playerScript.mapMinY - 20);         this.owner.addChild(minXLabel);          const maxXLabel = new Laya.Text();         maxXLabel.text = `maxX: ${this.playerScript.mapMaxX}`; ...

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

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

... compassImg.pivot(compassImg.width / 2, compassImg.height / 2); compassImg.pos(Laya.stage.width / 2, 400); } function drawUI() { var canvas = new Sprite(); Laya.stage.addChild(canvas); canvas.graphics.drawLine(compassImg.x, 50, compassImg.x, 182, "#FFFFFF", 3); canvas.graphics.drawLine(-140 + compas...

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

94. 输入设备-指南针 [ 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

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

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

97. 设置滤镜(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

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

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

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

99. 循环添加一组按钮事件无法正常使用 [ 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

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

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

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