visualizes a resource using canvas objects and legacy text elements check out the ManualResource scene in the AdventureManual project for an example
https://adventure.softleitner.com/manual/resource
|
RectTransform | Bar |
|
Image | ValueImage |
|
Image | HitImage |
|
Text | ValueText |
|
Text | HitText |
|
TMPro.TMP_Text | DescriptionText |
|
RectTransform | MaximumTransform |
|
Transform | Target |
|
string | Format |
|
string | HitFormat |
|
ResourceType | ResourceType |
|
ResourcePool | ResourcePool |
|
float | HitDuration |
|
bool | Fade = true |
|
bool | ShowDamageColor |
|
bool | HideWhenEmpty |
|
float | MaximumReference |
|
UnityEvent | Damaged |
|
|
override void | setup () |
|
override void | onValueChanging (float value) |
|
override void | onValueChanged (float value) |
|
override void | onMaximumChanged (float value) |
|
virtual void | Awake () |
|
virtual void | Start () |
|
virtual void | OnDestroy () |
|
virtual void | attach () |
|
virtual void | detach () |
|
string | getValueText () |
|
string | getHitText (DamageEvent damageEvent) |
|
◆ Damage()
override void AdventureCore.ResourceBarPanel.Damage |
( |
DamageEvent | damageEvent | ) |
|
|
inlinevirtual |
◆ Hide()
override void AdventureCore.ResourceBarPanel.Hide |
( |
| ) |
|
|
inlinevirtual |
◆ onMaximumChanged()
override void AdventureCore.ResourceBarPanel.onMaximumChanged |
( |
float | value | ) |
|
|
inlineprotectedvirtual |
◆ onValueChanged()
override void AdventureCore.ResourceBarPanel.onValueChanged |
( |
float | value | ) |
|
|
inlineprotectedvirtual |
◆ onValueChanging()
override void AdventureCore.ResourceBarPanel.onValueChanging |
( |
float | value | ) |
|
|
inlineprotectedvirtual |
◆ SetDescription()
override void AdventureCore.ResourceBarPanel.SetDescription |
( |
string | description | ) |
|
|
inlinevirtual |
◆ setup()
override void AdventureCore.ResourceBarPanel.setup |
( |
| ) |
|
|
inlineprotectedvirtual |
◆ Show()
override void AdventureCore.ResourceBarPanel.Show |
( |
| ) |
|
|
inlinevirtual |