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

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

11. Laya3.0 图片拼合缩放会导致两张图片之间有一条横线[已解决] [ 90%]

...    a.graphics.drawTexture(texture1, 0, 0);             this.owner.addChild(a)         });          Laya.loader.load("http://103.219.177.59:63344/%2 ... ot%3B, Laya.Loader.TEXTURE2D).then((texture: Laya.Texture2D) => {              //在U方向上使用WARPMODE_CLAMP    ...

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

12. Sprite-旋转缩放 [ 90%]

...pe = new Sprite(); ape.loadImage("../../res/apes/monkey2.png"); Laya.stage.addChild(ape); ape.pivot(55, 72); ape.x = Laya.stage.width / 2; ape.y = Laya.stage.height / 2; Laya.timer.frameLoop(1, this, animate); } function animate(e) { ape.rotation += 2; //心跳缩放 scaleDelta += 0.02; var scaleVal...

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

13. 屏幕适配-缩放-No Border [ 90%]

...e(); this.rect.graphics.drawRect(-100, -100, 200, 200, "gray"); Laya.stage.addChild(this.rect); this.updateRectPos(); } updateRectPos() { this.rect.x = Laya.stage.width / 2; this.rect.y = Laya.stage.height / 2; } } new SmartScale_Scale_NOBORDER();module laya { import Sprite = Laya.Sprite; import Sta...

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

14. 屏幕适配-缩放-No Scale [ 90%]

...e(); this.rect.graphics.drawRect(-100, -100, 200, 200, "gray"); Laya.stage.addChild(this.rect); this.updateRectPos(); } updateRectPos() { this.rect.x = Laya.stage.width / 2; this.rect.y = Laya.stage.height / 2; } } new SmartScale_Scale_NOSCALE();module laya { import Sprite = Laya.Sprite; import Stag...

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

15. 屏幕适配-缩放-Extract Fit [ 90%]

...e(); this.rect.graphics.drawRect(-100, -100, 200, 200, "gray"); Laya.stage.addChild(this.rect); this.updateRectPos(); } updateRectPos() { this.rect.x = Laya.stage.width / 2; this.rect.y = Laya.stage.height / 2; } } new SmartScale_Scale_EXTRACT_FIT();module laya { import Sprite = Laya.Sprite; import ...

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

16. 屏幕适配-缩放-Show All [ 90%]

...e(); this.rect.graphics.drawRect(-100, -100, 200, 200, "gray"); Laya.stage.addChild(this.rect); this.updateRectPos(); } updateRectPos() { this.rect.x = Laya.stage.width / 2; this.rect.y = Laya.stage.height / 2; } } new SmartScale_Scale_SHOW_ALL();module laya { import Sprite = Laya.Sprite; import Sta...

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

17. Sprite-旋转缩放 [ 90%]

...8"; this.showApe(); } showApe() { this.ape = new Laya.Sprite(); Laya.stage.addChild(this.ape); this.ape.loadImage("res/apes/monkey2.png"); this.ape.pivot(55, 72); // this.ape.pos( Laya.stage.width / 2, Laya.stage.height / 2); this.ape.x = Laya.stage.width / 2; this.ape.y = Laya.stage.height / 2; thi...

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

18. 显示对象的mask缩放为0时遮罩效果不生效 [ 85%]

... 0, testSp.width, testSp.height, '#FF0000'); testSp.mask = tmpMask; testSp.addChild(tmpMask); Laya.stage.addChild(testSp); let i = 0; tmpMask.scaleX = i / 3; Laya.stage.on(Laya.Event.CLICK, this, ()=>{ i = (i + 1) % 4; tmpMask.scaleX = i / 3; }); 附件 : --> 2020-04-21 添加评论 免费帖 -->...

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

19. (实现手指控制模型的缩放旋转)触控可以识别 但是导入的模型没有根据触控反应 [ 84%]

...e)); } onComplete(){ //创建场景         var scene = Laya.stage.addChild(new Laya.Scene3D());         //创建相机         var camera = new Laya.Camera(0, 0.1, 100);         scene.addChild(camera);         //设置相机的名称         camera.na...

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

20. 粒子不能缩放[ 84%]

...粒子文件加载完成后再去调整 缩放 var part:Sprite3D = scene.addChild(Sprite3D.load("part.lh")) as Sprite3D; part.once(Event.HIERARCHY_LOADED, this, function():void{        part.transform.localScale = new Vector3(3, 3, 3);  }); 2017-03-16 0 0 分享 微博 QZONE 微信 为什么被...

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