<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [server](./server.md) &gt; [SceneUI](./server.sceneui.md) &gt; [setState](./server.sceneui.setstate.md)

## SceneUI.setState() method

Sets the state of the SceneUI by performing a shallow merge with existing state.

**Signature:**

```typescript
setState(state: object): void;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

state


</td><td>

object


</td><td>

The state to set.


</td></tr>
</tbody></table>
**Returns:**

void

