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

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

41. 示例 骨骼动画换装 加不上点击事件 [ 76%]

...-18 0 0 分享 微博 QZONE 微信 cuixueying 赞同来自: 设置小人的pivot值,让中心点在其左上角即可! 2017-08-18 0 1 分享 微博 QZONE 微信 houkaihua888 赞同来自: 设置pivot值,试了不管用,它只会移动那个小人,对于点击区域没有作用 点击区域...

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

42. Sprite-旋转缩放 [ 75%]

...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 scaleValue = Math.sin(scale...

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

43. 父物体旋转会导致子物体的世界坐标系不正确?(附demo) [ 75%]

...get_root").getChildByName("PendulumCircleTarget").getChildByName("MoveBlockPivot").getChildByName("TargetGuard") as Laya.Sprite3D; Laya.stage.on(Laya.Event.KEY_PRESS, this, this.KeyPress); this.pivot = s.getChildByName("target_root").getChildByName("PendulumCircleTarget").getChildByName("MoveBlockPi...

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

44. 动画-图集动画 [ 75%]

... // 获取动画的边界信息 let bounds = ani.getGraphicBounds(); ani.pivot(bounds.width / 2, bounds.height / 2); ani.pos(Laya.stage.width / 2, Laya.stage.height / 2); } } new Animation_Altas();module laya { import Animation = Laya.Animation; import Stage = Laya.Stage; import Rectangle = Laya.Rec...

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

45. 动画-图集动画 [ 75%]

... // 获取动画的边界信息 var bounds = ani.getGraphicBounds(); ani.pivot(bounds.width / 2, bounds.height / 2); ani.pos(Laya.stage.width / 2, Laya.stage.height / 2); Laya.stage.addChild(ani); } })();module laya { import Animation = Laya.Animation; import Stage = Laya.Stage; import Rectangle = L...

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

46. Sprite-旋转缩放 [ 75%]

...e.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; this.scaleDelta = 0; Laya.timer.frameLoop(1, this, this.animate); } animate(...

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

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

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

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

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

49. 十几秒以后动画渲染时间变长,帧率变慢,是怎么回事? [ 74%]

...参照物为魔鬼, 用于确定瞄准点和整体的中心点 */ private _pivot_demon:Point = <Point>{ x: 50, y: 50 };     /** 特指血条+魔鬼的大小, 用于计算飞行物整体大小 */ private _top_area:Area = <Area>{ w: -1, h: -1 };  /** 血条 */ private _blood_chart: Laya...

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

50. Sprite-容器 [ 73%]

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