把图片的Image组件中的image type选成Filled,下面就出现了Fill Amount,通过GetComponent<Image>().fillAmount; 就可以拿到float类型的fillAmount。

 UGUI Image血条或者进度条效果UGUI Image血条或者进度条效果

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-24
  • 2021-08-30
  • 2021-06-01
  • 2022-12-23
猜你喜欢
  • 2021-08-30
  • 2021-11-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-16
  • 2022-02-19
相关资源
相似解决方案