Post

25Health bar

Godot两种Progress Bar

  • 1.ProgressBar:(一些属性TextureProgressBar也有)
    • Range:Min Value(最小值)、Max Value(最大值)、Value(进度值)、
    • Show Percentage:是否显示进度值
  • 2.TextureProgressBar(可自定义纹理):
    • Textures三个属性:Under(实际就是背景)、Progress(进度)、Over(边框/轮廓,在under、Progress之上)

MarginContainer(四周可设置margin的容器)

  • Theme Overrides->Constans提供:Mairgin Left/Top/Right/Bottom设置margin
This post is licensed under CC BY 4.0 by the author.