Skip to content

Latest commit

 

History

History
50 lines (26 loc) · 1.43 KB

README.md

File metadata and controls

50 lines (26 loc) · 1.43 KB

Damageable Healthbar

Build Status GitHub release (latest by date)

Preview

Finding the Component

This component can be found under the CoreAcademy account on Community Content.

Overview

The Damageable Health bar component will show a health bar for objects that can take damage and die. For example, the damageable objects in Core Content. This component can be added as a child and will look for the damageable object above it.

This can be useful to show the amount of health an object has left for players.

How to use

Drag the Damageable Healthbar template as a child of a damageable object. The component will attempt to find the nearest damageable ancestor.

There are various properties on the root of the template that can be changed.

  • LookAtPlayer

    If true, the container will always face the player.

  • Offset

    The offset of the container. Can be used to position this above the object.

  • BackgroundColor

    The background color of the bar.

  • BarColor

    The color of the bar.

  • Width

    The width of the bar.

  • Height

    The height of the bar.