# JsonWidget.getEffect

Gets an effect from a widget.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
jsonWidget:getEffect( name )
```

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

**Availability:** Client only

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `jsonWidget` | [JsonWidget](../Game-Script-Environment/Userdata/JsonWidget.md) | The JsonWidget. |
| `name` | string | The name of the effect on the json widget to get. |

**Returns:**

| Type | Description |
| --- | --- |
| [Effect](../Game-Script-Environment/Userdata/Effect.md) | The effect. |
