A Beginner-Friendly Tutorial for Live Coding Artists

This tutorial walks you through building a real-time audiovisual interaction between Unity and Sonic Pi, using Open Sound Control to send live-coded values to a Unity 3D object. It’s perfect for beginners in audiovisual live coding and interactive installation art.


1. Setup Guide 🛠

1.1 Install Unity and extOSC Plugin

  1. Install Unity Hub

    Download Unity Hub from the official website, and install the latest stable Unity version (recommended: Unity 2022 or later).

  2. Create a New Project

    In Unity Hub, click “New Project” → choose the 3D (built-in renderer) template → name your project and click Create.

image.png

  1. Import extOSC Plugin

image.png

image.png

extOSC - Open Sound Control

image.png


1.2 Set Up extOSC in Unity

  1. Create an OSC Manager

image.png

  1. Configure OSC Receiver

🔒 Make sure no other app is using the same port (like SuperCollider on 57120).

image.png


2. First Example: Controlling Sphere Color 🎨