DefaultSkillSlot
Default skill slot for the skill bar.
Properties
Name | Description | Type |
---|---|---|
skill | The skill node that this slot should display. | SkillNode |
onClick | A callback for when the skill slot is clicked. | UnityEvent |
onHover | A callback for when the pointer is over the skill slot. | UnityEvent |
onExit | A callback when the pointer has exited the skill slot. | UnityEvent |
rectTransform | RectTransform component of this skill slot. | RectTransform |
Methods
SkillDetails
Displays the skill details.
HideDetails
Hides the skill details.
UseSkill
Uses the skill. The skill will be put on cooldown. To make something happen when a skill is used, use the SkillTree.onSkillUsed callback.
SkillCooldownHandler
Handles skill cooldown visually.
Parameters
Name | Description | Type |
---|---|---|
remainingTime | The amount of time remaining. | float |
SetCooldownFillAmount
Sets the cooldown image fill amount.
Parameters
Name | Description | Type |
---|---|---|
amount | The amount out of 1. | float |
SetSlot
Sets the slot.
Parameters
Name | Description | Type |
---|---|---|
skill | The skill reference. | SkillNode |
keyText | The key text displayed on the slot. | string |
ReloadSprite
Reloads the sprite.
SetKeyText
Sets the key text.
Name | Description | Type |
---|---|---|
text | The text. | string |
InvokeOnClick
Invokes on click events.
InvokeOnHover
Invokes on hover events.
InvokeOnExit
Invokes on exit events.
Last updated