Skip to content

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.

License

Notifications You must be signed in to change notification settings

ManticoreGamesInc/CC-Damageable-Healthbar

Repository files navigation

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.

About

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.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks