# ScriptableObject.setPublicData

Sets (server) public data on a scriptableObject.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
scriptableObject:setPublicData( data )
```

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

**Availability:** Server only

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `scriptableObject` | [ScriptableObject](../Game-Script-Environment/Userdata/ScriptableObject.md) | The scriptableObject. |
| `data` | table | The public data. |
