DefaultSkillBar
Last updated
Last updated
Handles the default skill bar UI.
Inherits from SkillTreeUI.
Name | Description | |
---|---|---|
Validates the skills in each slot to ensure the player has obtained them.
Return Type: bool
Checks if a skill is assigned to a specific slot.
Parameters
Assigns a skill to a slot.
Parameters
Unassigns a skill if it's assigned to a slot.
Parameters
Unassigns the skill at a slot index.
Parameters
Uses a skill by triggering its slot.
Parameters
Updates the placement of the skill bar based on the properties.
Placement
Supported skill bar placements.
Name | Description | Type |
---|---|---|
Name | Description | Type |
---|---|---|
Name | Description | Type |
---|---|---|
Name | Description | Type |
---|---|---|
Name | Description | Type |
---|---|---|
Name | Description |
---|---|
skillSlotPrefab
Skill slot prefab object that will be instanced.
DefaultSkillSlot
placement
Placement of the skill bar.
DefaultSkillBar.Placement
slotCount
The number of slots that should be instantiated.
int
slotSpacing
Spacing between skill slots.
float
barSize
The size of the bar.
float
barPadding
Padding of the skill bar.
RectPadding
contentPadding
Padding of skill bar's content.
RectOffset
slotAlignment
Alignment of the skill bar content.
TextAnchor
slots
The skill slot instances.
List<DefaultSkillSlot>
canUseSkill
If the player is able to use a skill.
bool
isLocked
If the skill bar is currently locked. Locking prevents the player from using the skill bar.
bool
instance
The active DefaultSkillBar instance. This may be null if no DefaultSkillBar is in the scene.
DefaultSkillBar
skill
The skill.
SkillNode
slotIndex
The index of the slot.
int
skill
The skill to assign.
SkillNode
slotIndex
The index of the slot.
int
skill
The skill to unassign.
SkillNode
slotIndex
The index of the slot.
int
slotIndex
The index of the slot.
int
Bottom
Place at the bottom of the screen.
Top
Place at the top of the screen.
Left
Place on the left side of the screen.
Right
Place on the right side of the screen.