> For the complete documentation index, see [llms.txt](https://stage-precision.gitbook.io/grid/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://stage-precision.gitbook.io/grid/unity-integration/parameter-control/control-multiple-objects.md).

# Control multiple objects

Use SPNet Generic Controller to route several named values from Grid Studio to parameters across your Unity scene.

All bindings are managed in one **Generic Messages** list. Each entry selects a message name, a target GameObject and a parameter on that object.

#### Send generic values from Grid Studio

Use your SPNet Sender to configure send actions for the values you want to control.

Drag the sender into a **Workflow** to create triggered send actions, or into a **Modifier** graph to send values from a processing chain.

For Example:

| Generic name/key  | Value type    | Intended control |
| ----------------- | ------------- | ---------------- |
| `title`           | Text / String | Displayed text   |
| `light_intensity` | Real / Float  | Light intensity  |
| `light_color`     | Color         | Light color      |

Set the name/key and value on each send operation. Names are case-sensitive.

#### Create the controller in Unity

1. Choose **GameObject → SPNet → Generic Controller**.<br>

   <div align="left"><figure><img src="https://1380116828-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fc4nPw8BslCHXa7bL2mf8%2Fuploads%2F4qfqObiY9ulUPRwF7fFK%2FOZ4pC0Tbzo.gif?alt=media&amp;token=26bc7bb0-3cc0-440b-85df-371e62d15398" alt="" width="342"><figcaption></figcaption></figure></div>
2. Select the new **SPNet Generic Controller** in the Hierarchy.
3. Expand the first entry under **Generic Messages**.
4. Set a **Generic Name**.
5. Drag your text GameObject from the Hierarchy into **Target Object** or choose it from the list.
6. Open **Target Parameter** and choose the property to control.

The Receiver is assigned automatically or created when needed.

**Target Parameter** lists supported parameters on components attached to the selected Target Object.

#### Add more bindings

Click **Add Generic Message** for each additional binding.

<div align="left"><figure><img src="https://1380116828-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fc4nPw8BslCHXa7bL2mf8%2Fuploads%2FfCEZkUgaiX02RBYgDNyh%2F4C9MJQtRH1.gif?alt=media&amp;token=d5d0779e-88e5-47a9-926f-1fe498ff4bd2" alt="" width="563"><figcaption></figcaption></figure></div>

#### Manage the message list

Use the checkbox beside an entry to enable or disable its binding.

The **↑** and **↓** buttons reorder entries. The **−** button removes an entry. Expand an entry to see its **Data Type** and **Current Value**.

Received values remain available until the Receiver is reset, including when **Reconnect** is used.

#### Update in the Editor

With **Preview In Edit Mode** enabled on the Receiver, the controller applies values while you work in the Editor. Changes made in Edit Mode can be saved with the scene.

The same bindings also work in Play mode.
