# Skill Button

## Description

A Skill and Button control type used for skill without directional aiming. Supports skill activation, cooldowns, and cancellation.

<figure><img src="https://348920791-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeQ7CIxHuad77enwt80mG%2Fuploads%2FNA5FoFNApS05DU4GHHc6%2Fimage.png?alt=media&#x26;token=b1a900f3-20c8-40c0-a3c8-7d905d8abd20" alt="" width="420"><figcaption></figcaption></figure>

## Common

* **`Input Simulate`** : The Button control path of the input control to be simulate.
* **`Input Execution`** : Defines how the value transitions or updates during button press and release.
  * `Momentary` : Sends a value of `1` while the button is pressed, and `0` when released.
  * `Press Pulse` : Sends a value of `1` while the button is pressed, and `0` when released.
  * `Press Pulse` : Sends a value of `1` immediately when the button is released, followed by `0`.
* `Is Usable` : Determines whether the Skill Button can be used.

## Cooldown

* `Fill` : A reference to a image component with image type set to filled.
* `Text` : A reference to a text or TMP component to display the remaining cooldown.
* `Format`  : The number format wrapped with curly braces used when displaying the cooldown as text. \
  e.g.  &#x20;
  * {0} → 12    &#x20;
  * {0.0} or {1} → 12.3
  * {0.00} or {2} → 12.34
* `Duration` : The total time duration to finish the cooldown.
* `Time Mode` : The time scale that affects the duration of the cooldown.
* `Is Manual` : Determines whether the cooldown is managed manually (via Instruction or scripting). If set to false, the cooldown starts automatically after casting.

## Cancellation

* `Cancel Area` : A reference to a Tactile Control component. Interactions such as press, release, etc. of a Cancel Area will also trigger regardless if its interactable or not when using the Skill Button.
* `Is Inverted`  : If true, cancellation is triggered outside the Cancel Area. If false, it is triggered inside the area.
