# SUIToolTipHint

**成员** 4

|      |                           |                                                       |
| ---- | ------------------------- | ----------------------------------------------------- |
| 属性 | [Enabled](#enabled)       | Get or set whether the tool tip component is Enabled. |
| 属性 | [Text](#text)             | Get or set the string value this tool tip displays.   |
| 属性 | [Texture](#texture)       | Get or set the tooltip's texture.                     |
| 属性 | [GameObject](#gameobject) | –                                                     |

## 属性

### Enabled

bool Enabled {get; set; }

Get or set whether the tool tip component is Enabled.

示例

**Lua**

```lua
Space.Host.ExecutingObject.UIToolTipHint.Enabled = true

```

### Text

string Text {get; set; }

Get or set the string value this tool tip displays.

示例

**Lua**

```lua
Space.Host.ExecutingObject.UIToolTipHint.Text = "AToolTip"

```

### Texture

[SResource](/docs/zh-Hans/scripting/client-scripting-api-reference/types/sresource.md) Texture {get; set; }

Get or set the tooltip's texture.

示例

**Lua**

```lua
Space.Host.ExecutingObject.UIToolTipHint.Texture = Space.GetResource("ResourceName")

```

### GameObject

[SGameObject](/docs/zh-Hans/scripting/client-scripting-api-reference/types/sgameobject.md) GameObject {get; }

示例

**Lua**

```lua
theGameObject = Space.Host.ExecutingObject.UIToolTipHint.GameObject

```
