visualizes a resource using canvas objects and TextMeshPro 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 |
| |
|
TMPro.TMP_Text | ValueText |
| |
|
TMPro.TMP_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.ResourceBarTMP.Damage |
( |
DamageEvent | damageEvent | ) |
|
|
inlinevirtual |
◆ Hide()
| override void AdventureCore.ResourceBarTMP.Hide |
( |
| ) |
|
|
inlinevirtual |
◆ onMaximumChanged()
| override void AdventureCore.ResourceBarTMP.onMaximumChanged |
( |
float | value | ) |
|
|
inlineprotectedvirtual |
◆ onValueChanged()
| override void AdventureCore.ResourceBarTMP.onValueChanged |
( |
float | value | ) |
|
|
inlineprotectedvirtual |
◆ onValueChanging()
| override void AdventureCore.ResourceBarTMP.onValueChanging |
( |
float | value | ) |
|
|
inlineprotectedvirtual |
◆ SetDescription()
| override void AdventureCore.ResourceBarTMP.SetDescription |
( |
string | description | ) |
|
|
inlinevirtual |
◆ setup()
| override void AdventureCore.ResourceBarTMP.setup |
( |
| ) |
|
|
inlineprotectedvirtual |
◆ Show()
| override void AdventureCore.ResourceBarTMP.Show |
( |
| ) |
|
|
inlinevirtual |