# Tooltip Trigger

## Introduction

{% hint style="info" %}
Part of the [Tooltip System](/old-kb/toolkit-for-ui-and-ux/unity/learning/core-concepts/tooltips.md) of the UX Complete asset.
{% endhint %}

A tooltip trigger indicates when a tooltip should be shown and then subsaquently hidden. Tooltip Trigger is available in the following forms

### Tooltip Game Event Trigger

Invokes GameEvents when the tip should be activated and cancled respectivly

### Tooltip GameObject Trigger

Toggles a game object's active state when the tip is actiavted and cancled

### Tooltip Unity Event Trigger

Invokes Unity Events when the tip should be activated and cancled respectivly

## Definition

### Fields and Attributes

<table><thead><tr><th width="150">Type</th><th width="150">Name</th><th width="370.2">Notes</th></tr></thead><tbody><tr><td>bool</td><td>isActive</td><td>if false then this trigger will not fire</td></tr><tr><td>float</td><td>triggerDelay</td><td>the time in seconds the trigger will delay activation</td></tr><tr><td>bool</td><td>useCancelTimer</td><td>if true then this trgger will close its self after the indicated time has passed. If false this trigger will only close when it loses activation.</td></tr><tr><td>float</td><td>cancelDelay</td><td>if useCancelTimer is true then this is the number of seconds after the tip is shown before the trigger self cancels.</td></tr></tbody></table>

### Events

#### Invoked

For GameEvent and UnityEvent triggers these are raised when the delay time has passed after the trigger has been activated

#### Canceled

For GameEvent and UnityEvent triggers these are raised when the activation loses focus or if using the cancel timer when the cancel delay time has passed after the tip has been shown.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://kb.heathen.group/old-kb/toolkit-for-ui-and-ux/unity/components/tooltip-trigger.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
