Heathen KB
Become a GitHub Sponsor
Join our Discord
Find us on the Web
in the Unity Asset Store
Search…
General
Introduction
Guides
Asset Developers
Hel House
🔎
What is Hel House
⚔
Solutions
💶
Pricing
Heathen Engineering
🤷
What is Heathen
Licensing
General Info
Art Assets
PhysKit
Steamworks
System Core
User eXperience [UX]
Installation
Learning
API
Components
Action Hold
Border Handle
Button Cursor State
Change Cursor Default State
Command Director
Cursor Animator
Drag Item
Drop Container
Key Hold
Mouse Over Cursor State
Move Handle
Play On Click
Play On Demand
Play On Down
Play On Enter
Play On Exit
Play On Up
Pointer Hold
Scenes Manager
Selectable Object
Selection Manager
Tooltip Trigger
Tooltip Window Controller
Window
Window Clamping Bounds
Window Focus Change Event Data
Objects
Enums
Codex
Introduction
Irish
Powered By
GitBook
Key Hold
This is for use with Unity's legacy Input System.
You can use Action Hold if your using the new Input System
Introduction
Part of the
Interaction Tools
of the UX Complete asset
Ever play a game that asked you to push an hold a button for some period of time to activate the action?
The Key Hold event componenets do just that and are designed to work with Unity's "legacy Input System"
This componenet is available in two flavors
KeyHoldGameEvent
For use with Heathen Game Events
KeyHoldUnityEvent
For use with standard Unity Events
Definition
Fields and Attributes
Type
Name
Notes
KeyCode[]
keys
The keys to monitor, all keys must be held
float
holdTime
How long the action should be held
bool
useUnscaledTime
Should time scale be considered
Events
Start
Occurs when the action is first started to be held
Cancel
Occurs when the action is released before a complete
Complete
Occurs when the action is fully held for its duration
Progressed
Updated per frame noting the total progress
Previous
Drop Container
Next
Mouse Over Cursor State
Last modified
9mo ago
Copy link
Outline
Introduction
KeyHoldGameEvent
KeyHoldUnityEvent
Definition
Fields and Attributes
Events