Mana

The mana configuration is where you setup the mana for your characters including links to Unity UI elements to display health during play.

Abilities can be setup to use mana when activating, stopping any activation if the character does not have the mana needed

Mana GUI

Mana GUI can be added which will show the Current and Max mana in sliders and text. This is updated during play.

Multiple sliders and text can be setup on the entity by pressing the “+ Add Mana GUI” button and can be removed by clicking the “X” for each mana GUI section.

Once a mana GUI section is added the following settings will appear:

Mana Slider

This setting requires a Unity Slider object which can be created from the Unity menu: GameObject > UI > Slider. The slider will show the current mana during play and will always make sure the max value matches the max mana to accurately represent how ‘filled’ the bar should be.

Only Show Sliders When Selected

If enabled then the sliders setup in this section will only show whilst the entity is being targeted by another ABC entity. If disabled then the sliders will always show.

Mana Text

Only Show Text When Selected

If enabled then the text object setup in this section will only show whilst the entity is being targeted by another ABC entity. If disabled then the text will always show.

Notable Settings

Setting

Description

Max Mana

This setting configures the max mana the entity can have. This accepts float values but will always be rounded to display a whole number in any game UI setup. The max mana can be changed during play from ability effects.

Current Mana

Setting displays the current mana of the entity, this will never go below 0 or higher then the max mana . This value will change during play if an ability uses mana.

Regen Per Second

This setting determines how much mana is recovered every second. This accepts floats values. If 0 then no health is recovered.

Full Mana On Enable

If ticked then the entities current health will always be full to the max whenever the object is enabled during play. Useful for objects that ‘respawn’.

It is highly recommended to read the tooltips in the blue boxes for a full description on what each setting does

Last updated