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

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

61. 图片使用pivotX参数后,再对图片添加遮罩会出现效果不对。 [ 74%]

图片使用pivotX参数后,再对图片添加遮罩会出现效果不对。 在图片加载后设置pivotX,同时设置了遮罩,发现有一块图没有被遮上,但是不设置pivotX参数是正常显示的。 附件 : --> 2017-08-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...

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

62. drawCallOptimize在Native下无效 [ 74%]

...动画无效 关于同为object层,层级设置无效的问题 transform.pivot = new Laya.Vector3(0,1,0); 设置pivot无效~~~~~~~~~~~~~ 问题状态 最新活动: 2022-10-20 17:09 浏览: 11288 关注: 3 人 devyding • 2022-10-19 19:22 实测在浏览器和native上不一样哦,我更新了...

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

63. Sprite-容器 [ 74%]

... this.apesCon.addChild(ape); ape.loadImage(`res/apes/monkey${i}.png`); ape.pivot(55, 72).pos( Math.cos(radianUnit * i) * layoutRadius, Math.sin(radianUnit * i) * layoutRadius ); } this.apesCon.pos(Laya.stage.width / 2, Laya.stage.height / 2); Laya.timer.frameLoop(1, this, this.animate); } animate() ...

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

64. Sprite-容器 [ 74%]

...e = new Sprite(); ape.loadImage("../../res/apes/monkey" + i + ".png"); ape.pivot(55, 72); // 以圆周排列猩猩 ape.pos( Math.cos(radianUnit * i) * layoutRadius, Math.sin(radianUnit * i) * layoutRadius); apesCtn.addChild(ape); } apesCtn.pos(Laya.stage.width / 2, Laya.stage.height / 2); Laya.timer...

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

65. 计时器-间隔循环 [ 73%]

...ext(); t.text = text; t.fontSize = 30; t.color = "white"; t.bold = true; t.pivot(t.width / 2, t.height / 2); t.pos(x, y); Laya.stage.addChild(t); return t; } function animateTimeBased() { rotateTimeBasedText.rotation += 1; } function animateFrameRateBased() { rotateFrameRateBasedText.rotation += 1; ...

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

66. label标签在代码里改了text值后锚点会失效 [ 73%]

...xueying 赞同来自: 1、不要再layaAir IDE为你的label设置宽高和pivot 2、直接再代码里对label进行控制,如下 this.my_label.text='AAAAAAAAAAAdddddddddddddddddddddddddddAAAA'; this.my_label.pivot(this.my_label.width/2,this.my_label.height/2); 2017-03-14 0 0 分享 微博 QZONE ...

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

67. 鼠标交互-自定义事件 [ 73%]

...) { sp = new Sprite(); sp.graphics.drawRect(0, 0, 200, 200, "#D2691E"); sp.pivot(100, 100); sp.x = Laya.stage.width / 2; sp.y = Laya.stage.height / 2; sp.size(200, 200); Laya.stage.addChild(sp); sp.on(ROTATE, this, onRotate); // 侦听自定义的事件 sp.on(Event.CLICK, this, onSpriteClick); } fun...

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

68. Laya2.7.1 UI的VIew锚点感觉出问题了。 [ 73%]

...图VIew编辑导出之后,src/ui/layaMaxUI.ts 并没有变化…… 将pivot设置为图片中心后,缩放结点,碰撞体和图片不是以相同锚点缩放 一个动画如何设置绕自身中心点旋转,我这么设置_ani.pivot(_ani.width/2,_ani.height/2);不行,而且也没有锚...

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

69. 计时器-间隔循环 [ 73%]

...ext(); t.text = text; t.fontSize = 30; t.color = "white"; t.bold = true; t.pivot(t.width / 2, t.height / 2); t.pos(x, y); Laya.stage.addChild(t); return t; } animateTimeBased() { this.rotateTimeBasedText.rotation += 1; } animateFrameRateBased() { this.rotateFrameRateBasedText.rotation += 1; } } new ...

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

70. Sprite-切换纹理 [ 73%]

...ction onAssetsLoaded() { ape = new Sprite(); Laya.stage.addChild(ape); ape.pivot(55, 72); ape.pos(Laya.stage.width / 2, Laya.stage.height / 2); // 显示默认纹理 switchTexture(); ape.on("click", this, switchTexture); } function switchTexture() { var textureUrl = (flag = !flag) ? texture1 : textu...

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