# TooltipAttribute

Kind: Class · Namespace: Sansar.Script · Assembly: Sansar.Script.dll · Script API 47.10.0

<div class="api-meta">
<span class="api-kind api-kind-class" data-pagefind-filter="kind:Class">Class</span>
<span data-pagefind-filter="namespace:Sansar.Script">Namespace <a href="/scripting/api/sansar.script"><code>Sansar.Script</code></a></span>
<span>Inherits <a href="https://learn.microsoft.com/dotnet/api/system.attribute">Attribute</a></span>
</div>

<span id="T:Sansar.Script.TooltipAttribute"></span>

Set a helpful tooltip message to show in the editor.

```csharp
[System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Field)]
public class TooltipAttribute : Attribute
```

## Members at a glance

| Kind | Members |
|---|---|
| **Constructors** | [TooltipAttribute](#tooltipattribute) |
| **Properties** | [Value](#value) |

## Constructors

### TooltipAttribute

<div class="api-card">
<span id="M:Sansar.Script.TooltipAttribute.#ctor(System.String)"></span>
<span id="C:Sansar.Script.TooltipAttribute(System.String)"></span>

```csharp signature
public TooltipAttribute(string tooltip)
```

Set a helpful tooltip message to show in the editor.

| Parameter | Type | Description |
|---|---|---|
| `tooltip` | [string](https://learn.microsoft.com/dotnet/api/system.string) |  |

<details class="api-example" open><summary>Example</summary>

```csharp
[Tooltip("The position to move the object to, in world space.")]
public Vector Destination;
```

</details>

</div>


## Properties

### Value

<div class="api-card">
<span id="P:Sansar.Script.TooltipAttribute.Value"></span>

```csharp signature
public string Value { get; }
```

The string to display

</div>


## Used in examples

- [DataStoreExample.cs](https://github.com/Wookey-Technologies/sansar-script-starter/blob/66af8b516b701088d043e4615acfcf5779356604/examples/official/DataStoreExample.cs)

<p class="api-generated" data-pagefind-ignore>Generated from the Sansar 47.10.0 client ScriptApi snapshot.</p>