# Harvestable.setSubMeshVisible

Set the visibility of a submesh

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
harvestable:setSubMeshVisible( name, visible )
```

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

**Availability:** Client only

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `harvestable` | [Harvestable](../Game-Script-Environment/Userdata/Harvestable.md) | The harvestable. |
| `name` | string | Name of the submesh. |
| `visible` | boolean | True if the submesh should be visible. |
