# JsonWidget.setVisible

Sets the visibility of a widget.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
jsonWidget:setVisible( stopImmediate )
```

[Open the full Game reference](../Game-Script-Environment/Userdata/JsonWidget.md#setvisible)

**Availability:** Client only

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `jsonWidget` | [JsonWidget](../Game-Script-Environment/Userdata/JsonWidget.md) | The JsonWidget. |
| `stopImmediate` | boolean | The widgets new visibility state. |
