HealthBar
</> ursina.prefabs.health_bar
Inherits Button
Initialization
HealthBar(
    max_value=100, 
    value=Default, 
    roundness=0.25, 
    bar_color=color.red.tint(-0.2), 
    highlight_color=color.black66, 
    animation_duration=0.1, 
    show_text=True, 
    show_lines=False, 
    text_size=0.7, 
    scale=(0.5, 0.025), 
    origin=(-0.5, 0.5), 
    name='health_bar'
    )
Attributes
.bar
default: Entity(parent=self, model=Quad(radius=roundness), ...
.lines
default: Entity(parent=self.bar, y=-1, color=color.black33,...
.clamp
default: True
.value
default: self.max_value if value == Default else value
Properties
value
show_text
show_lines
bar_color