Skip to content

The Player Health component will show a health bar and health number in the UI so the player can see how much health they have left. This is useful for games when health management is important. A player Knowing their health helps them be more cautious and strategic.

License

Notifications You must be signed in to change notification settings

ManticoreGamesInc/CC-Player-Health

Repository files navigation

Player Health

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 Player Health component will show a health bar and health number in the UI so the player can see how much health they have left. This is useful for games when health management is important. A player Knowing their health helps them be more cautious and strategic.

How to use

Drag the Player Health template into the Hierarchy. The component comes with a heal and damage pad that can be used to test the health bar. These can be removed by deleting the group Heal / Damage Demo.

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

  • BackgroundColor

    The color of the bar background.

  • BarColor

    The color of the bar.

  • Width

    The width of the bar.

  • Height

    The height of the bar.

  • Offset

    The UI offset for X and Y.

  • ShowText

    If enabled, then the health amount will show in the bar.

About

The Player Health component will show a health bar and health number in the UI so the player can see how much health they have left. This is useful for games when health management is important. A player Knowing their health helps them be more cautious and strategic.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks