MiTschMR Studios
Defnite
Search…
MiTschMR Studios
Games
Defnite
Skills
Skills
Skills Overview
Skills Window
Skills Component
Actions/Conditions/Triggers
Skill Tree
Skill Bar
FAQ
Example Setup
API Documentation
ButtonActionsSkills
Classes
Fields
Methods
DatabaseSkills
Skill
SkillAsset
SkillBarElement
SkillBarElements
SkillBarSkillTreeElement
SkillBarSkillTreeElements
SkillContextMenuUI
SkillHolder
SkillHolderSerialized
SkillRelyOn
SkillTreeItemsUI
SkillTreeItemsUIAutomatical
SkillTreeItemsUIManual
SkillTreeUIManager
SkillTreeUIManagerAutomatical
SkillTreeUIManagerManual
SkillType
SkillUI
SkillUIAutomatical
SkillUIManual
Skills
SkillsSingleSkillTypeAttribute
Finder for Game Creator
Finder for Game Creator
Finder for Game Creator 2
Finder for Game Creator 2
More Extensions
List Of My Extensions
GC API Guides
About
Configurable Enter Play Mode Compatibility
Access GC Script Components
Access Player Using HookPlayer
Inventory Custom Entries
Accessing Scriptable Objects
Custom Editor Windows - Part 1
Custom Editor Windows - Part 2
Inventory Context Menu Support
Inventory Item Tooltips
Converting To GC Variables
Working With GC Variables
C# Code Style Guide
C# Code Style Guide For Game Creator
Powered By
GitBook
ButtonActionsSkills
Adds right click functionality to the GC Button.
Implementation
1
public
class
ButtonActionsSkills
:
Selectable
,
IPointerClickHandler
,
ISubmitHandler
Copied!
Inheritance
.... -->
Selectable
-->
ButtonActionsSkills
​
​
IEventSystemHandler
-->
IPointerClickHandler
-->
ButtonActionsSkills
​
​
IEventSystemHandler
-->
ISubmitHandler
-->
ButtonActionsSkills
​
Requires
Component of type
Image
​
Component of type
Actions
​
Classes
Name
Description
​
ButtonActionsEvent
​
Generic Unity Event of type GameObject
Fields
Name
Description
​
actions
​
Contains the actions for the onClick event
​
onClickRight
​
Unity event of type
ButtonClickedEvent
​
onClick
​
Unity event of type
ButtonActionsEvent
Methods
Name
Description
​
Awake()
​
Awake is called when the script instance is being loaded
​
OnValidate()
​
This function is called when the script is loaded or a value is changed in the Inspector (Called in the editor only)
​
OnPointerClick(PointerEventData)
​
Use this callback to detect clicks
​
OnSubmit(BaseEventData)
​
This detects when a Button has been selected via a "submit" key you specify (default is the return key)
​
OnFinishSubmit()
​
Called at the end of OnSubmit(BaseEventData)
​
Press()
​
Called when an
onClick
event is fired
​
PressRight()
​
Called when an
onClickRight
event is fired
Previous
API Documentation
Next
Classes
Last modified
1yr ago
Copy link
Contents
Implementation
Inheritance
Requires
Classes
Fields
Methods